var fd=e=>{throw TypeError(e)};var Ua=(e,t,n)=>t.has(e)||fd("Cannot "+n);var N=(e,t,n)=>(Ua(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?fd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),B=(e,t,n,r)=>(Ua(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),je=(e,t,n)=>(Ua(e,t,"access private method"),n);var Fs=(e,t,n,r)=>({set _(o){B(e,t,o,n)},get _(){return N(e,t,r)}});function Sy(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oh={exports:{}},aa={},Mh={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ks=Symbol.for("react.element"),Ey=Symbol.for("react.portal"),Cy=Symbol.for("react.fragment"),ky=Symbol.for("react.strict_mode"),Ny=Symbol.for("react.profiler"),Py=Symbol.for("react.provider"),Ty=Symbol.for("react.context"),jy=Symbol.for("react.forward_ref"),Ry=Symbol.for("react.suspense"),Oy=Symbol.for("react.memo"),My=Symbol.for("react.lazy"),hd=Symbol.iterator;function Ay(e){return e===null||typeof e!="object"?null:(e=hd&&e[hd]||e["@@iterator"],typeof e=="function"?e:null)}var Ah={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lh=Object.assign,Dh={};function xo(e,t,n){this.props=e,this.context=t,this.refs=Dh,this.updater=n||Ah}xo.prototype.isReactComponent={};xo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};xo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _h(){}_h.prototype=xo.prototype;function Uu(e,t,n){this.props=e,this.context=t,this.refs=Dh,this.updater=n||Ah}var Hu=Uu.prototype=new _h;Hu.constructor=Uu;Lh(Hu,xo.prototype);Hu.isPureReactComponent=!0;var pd=Array.isArray,Ih=Object.prototype.hasOwnProperty,Vu={current:null},Fh={key:!0,ref:!0,__self:!0,__source:!0};function zh(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Ih.call(t,r)&&!Fh.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,F=P[H];if(0>>1;Ho(ge,D))Teo(Z,ge)?(P[H]=Z,P[Te]=D,H=Te):(P[H]=ge,P[q]=D,H=q);else if(Teo(Z,D))P[H]=Z,P[Te]=D,H=Te;else break e}}return T}function o(P,T){var D=P.sortIndex-T.sortIndex;return D!==0?D:P.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],d=1,h=null,m=3,f=!1,b=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var T=n(u);T!==null;){if(T.callback===null)r(u);else if(T.startTime<=P)r(u),T.sortIndex=T.expirationTime,t(l,T);else break;T=n(u)}}function S(P){if(p=!1,x(P),!b)if(n(l)!==null)b=!0,$(E);else{var T=n(u);T!==null&&U(S,T.startTime-P)}}function E(P,T){b=!1,p&&(p=!1,v(j),j=-1),f=!0;var D=m;try{for(x(T),h=n(l);h!==null&&(!(h.expirationTime>T)||P&&!z());){var H=h.callback;if(typeof H=="function"){h.callback=null,m=h.priorityLevel;var F=H(h.expirationTime<=T);T=e.unstable_now(),typeof F=="function"?h.callback=F:h===n(l)&&r(l),x(T)}else r(l);h=n(l)}if(h!==null)var Y=!0;else{var q=n(u);q!==null&&U(S,q.startTime-T),Y=!1}return Y}finally{h=null,m=D,f=!1}}var C=!1,k=null,j=-1,A=5,M=-1;function z(){return!(e.unstable_now()-MP||125H?(P.sortIndex=D,t(u,P),n(l)===null&&P===n(u)&&(p?(v(j),j=-1):p=!0,U(S,D-H))):(P.sortIndex=F,t(l,P),b||f||(b=!0,$(E))),P},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(P){var T=m;return function(){var D=m;m=T;try{return P.apply(this,arguments)}finally{m=D}}}})(Hh);Uh.exports=Hh;var Hy=Uh.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Vy=y,nt=Hy;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=Object.prototype.hasOwnProperty,Qy=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,gd={},vd={};function Yy(e){return Ll.call(vd,e)?!0:Ll.call(gd,e)?!1:Qy.test(e)?vd[e]=!0:(gd[e]=!0,!1)}function Gy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ky(e,t,n,r){if(t===null||typeof t>"u"||Gy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Be(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new Be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new Be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new Be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new Be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new Be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new Be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new Be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new Be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new Be(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gu=/[\-:]([a-z])/g;function Ku(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gu,Ku);Pe[t]=new Be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gu,Ku);Pe[t]=new Be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gu,Ku);Pe[t]=new Be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new Be(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new Be(e,1,!1,e.toLowerCase(),null,!0,!0)});function qu(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2a||o[i]!==s[a]){var l=` `+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{Qa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$o(e):""}function qy(e){switch(e.tag){case 5:return $o(e.type);case 16:return $o("Lazy");case 13:return $o("Suspense");case 19:return $o("SuspenseList");case 0:case 2:case 15:return e=Ya(e.type,!1),e;case 11:return e=Ya(e.type.render,!1),e;case 1:return e=Ya(e.type,!0),e;default:return""}}function Fl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Lr:return"Fragment";case Ar:return"Portal";case Dl:return"Profiler";case Xu:return"StrictMode";case _l:return"Suspense";case Il:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yh:return(e.displayName||"Context")+".Consumer";case Qh:return(e._context.displayName||"Context")+".Provider";case Ju:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zu:return t=e.displayName||null,t!==null?t:Fl(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return Fl(e(t))}catch{}}return null}function Xy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fl(t);case 8:return t===Xu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jy(e){var t=Kh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){e._valueTracker||(e._valueTracker=Jy(e))}function qh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zl(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xh(e,t){t=t.checked,t!=null&&qu(e,"checked",t,!1)}function $l(e,t){Xh(e,t);var n=$n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wl(e,t.type,$n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wl(e,t,n){(t!=="number"||Ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wo=Array.isArray;function Vr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Bs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ho={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zy=["Webkit","ms","Moz","O"];Object.keys(Ho).forEach(function(e){Zy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ho[t]=Ho[e]})});function tp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ho.hasOwnProperty(e)&&Ho[e]?(""+t).trim():t+"px"}function np(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=tp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var e0=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hl(e,t){if(t){if(e0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Vl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ql=null;function ec(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Qr=null,Yr=null;function Ed(e){if(e=Ts(e)){if(typeof Yl!="function")throw Error(R(280));var t=e.stateNode;t&&(t=fa(t),Yl(e.stateNode,e.type,t))}}function rp(e){Qr?Yr?Yr.push(e):Yr=[e]:Qr=e}function op(){if(Qr){var e=Qr,t=Yr;if(Yr=Qr=null,Ed(e),t)for(e=0;e>>=0,e===0?32:31-(d0(e)/f0|0)|0}var Us=64,Hs=4194304;function Bo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=Bo(a):(s&=i,s!==0&&(r=Bo(s)))}else i=n&~o,i!==0?r=Bo(i):s!==0&&(r=Bo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ns(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function g0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Qo),Md=" ",Ad=!1;function Cp(e,t){switch(e){case"keyup":return H0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function Q0(e,t){switch(e){case"compositionend":return kp(t);case"keypress":return t.which!==32?null:(Ad=!0,Md);case"textInput":return e=t.data,e===Md&&Ad?null:e;default:return null}}function Y0(e,t){if(Dr)return e==="compositionend"||!lc&&Cp(e,t)?(e=Sp(),pi=sc=jn=null,Dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Id(n)}}function jp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rp(){for(var e=window,t=Ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function nx(e){var t=Rp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jp(n.ownerDocument.documentElement,n)){if(r!==null&&uc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Fd(n,s);var i=Fd(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_r=null,Zl=null,Go=null,eu=!1;function zd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;eu||_r==null||_r!==Ti(r)||(r=_r,"selectionStart"in r&&uc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Go&&as(Go,r)||(Go=r,r=Di(Zl,"onSelect"),0zr||(e.current=iu[zr],iu[zr]=null,zr--)}function re(e,t){zr++,iu[zr]=e.current,e.current=t}var Wn={},De=Vn(Wn),Ye=Vn(!1),cr=Wn;function co(e,t){var n=e.type.contextTypes;if(!n)return Wn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function Ii(){ie(Ye),ie(De)}function Qd(e,t,n){if(De.current!==Wn)throw Error(R(168));re(De,t),re(Ye,n)}function zp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,Xy(e)||"Unknown",o));return fe({},n,r)}function Fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,cr=De.current,re(De,e),re(Ye,Ye.current),!0}function Yd(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=zp(e,t,cr),r.__reactInternalMemoizedMergedChildContext=e,ie(Ye),ie(De),re(De,e)):ie(Ye),re(Ye,n)}var Gt=null,ha=!1,al=!1;function $p(e){Gt===null?Gt=[e]:Gt.push(e)}function px(e){ha=!0,$p(e)}function Qn(){if(!al&&Gt!==null){al=!0;var e=0,t=te;try{var n=Gt;for(te=1;e>=i,o-=i,qt=1<<32-Ct(t)+o|n<j?(A=k,k=null):A=k.sibling;var M=m(v,k,x[j],S);if(M===null){k===null&&(k=A);break}e&&k&&M.alternate===null&&t(v,k),g=s(M,g,j),C===null?E=M:C.sibling=M,C=M,k=A}if(j===x.length)return n(v,k),le&&qn(v,j),E;if(k===null){for(;jj?(A=k,k=null):A=k.sibling;var z=m(v,k,M.value,S);if(z===null){k===null&&(k=A);break}e&&k&&z.alternate===null&&t(v,k),g=s(z,g,j),C===null?E=z:C.sibling=z,C=z,k=A}if(M.done)return n(v,k),le&&qn(v,j),E;if(k===null){for(;!M.done;j++,M=x.next())M=h(v,M.value,S),M!==null&&(g=s(M,g,j),C===null?E=M:C.sibling=M,C=M);return le&&qn(v,j),E}for(k=r(v,k);!M.done;j++,M=x.next())M=f(k,v,j,M.value,S),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?j:M.key),g=s(M,g,j),C===null?E=M:C.sibling=M,C=M);return e&&k.forEach(function(I){return t(v,I)}),le&&qn(v,j),E}function w(v,g,x,S){if(typeof x=="object"&&x!==null&&x.type===Lr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case $s:e:{for(var E=x.key,C=g;C!==null;){if(C.key===E){if(E=x.type,E===Lr){if(C.tag===7){n(v,C.sibling),g=o(C,x.props.children),g.return=v,v=g;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===wn&&qd(E)===C.type){n(v,C.sibling),g=o(C,x.props),g.ref=Ao(v,C,x),g.return=v,v=g;break e}n(v,C);break}else t(v,C);C=C.sibling}x.type===Lr?(g=ur(x.props.children,v.mode,S,x.key),g.return=v,v=g):(S=Si(x.type,x.key,x.props,null,v.mode,S),S.ref=Ao(v,g,x),S.return=v,v=S)}return i(v);case Ar:e:{for(C=x.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(v,g.sibling),g=o(g,x.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=ml(x,v.mode,S),g.return=v,v=g}return i(v);case wn:return C=x._init,w(v,g,C(x._payload),S)}if(Wo(x))return b(v,g,x,S);if(To(x))return p(v,g,x,S);Xs(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,x),g.return=v,v=g):(n(v,g),g=pl(x,v.mode,S),g.return=v,v=g),i(v)):n(v,g)}return w}var ho=Hp(!0),Vp=Hp(!1),Wi=Vn(null),Bi=null,Br=null,hc=null;function pc(){hc=Br=Bi=null}function mc(e){var t=Wi.current;ie(Wi),e._currentValue=t}function uu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Kr(e,t){Bi=e,hc=Br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function dt(e){var t=e._currentValue;if(hc!==e)if(e={context:e,memoizedValue:t,next:null},Br===null){if(Bi===null)throw Error(R(308));Br=e,Bi.dependencies={lanes:0,firstContext:e}}else Br=Br.next=e;return t}var er=null;function gc(e){er===null?er=[e]:er.push(e)}function Qp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,gc(t)):(n.next=o.next,o.next=n),t.interleaved=n,tn(e,r)}function tn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var bn=!1;function vc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,tn(e,n)}return o=r.interleaved,o===null?(t.next=t,gc(r)):(t.next=o.next,o.next=t),r.interleaved=t,tn(e,n)}function gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nc(e,n)}}function Xd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ui(e,t,n,r){var o=e.updateQueue;bn=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var h=o.baseState;i=0,d=u=l=null,a=s;do{var m=a.lane,f=a.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,p=a;switch(m=t,f=n,p.tag){case 1:if(b=p.payload,typeof b=="function"){h=b.call(f,h,m);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=p.payload,m=typeof b=="function"?b.call(f,h,m):b,m==null)break e;h=fe({},h,m);break e;case 2:bn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[a]:m.push(a))}else f={eventTime:f,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,l=h):d=d.next=f,i|=m;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;m=a,a=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(l=h),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);hr|=i,e.lanes=i,e.memoizedState=h}}function Jd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ul.transition;ul.transition={};try{e(!1),t()}finally{te=n,ul.transition=r}}function cm(){return ft().memoizedState}function yx(e,t,n){var r=Fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dm(e))fm(t,n);else if(n=Qp(e,t,n,r),n!==null){var o=ze();kt(n,e,r,o),hm(n,t,r)}}function xx(e,t,n){var r=Fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dm(e))fm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Nt(a,i)){var l=t.interleaved;l===null?(o.next=o,gc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Qp(e,t,o,r),n!==null&&(o=ze(),kt(n,e,r,o),hm(n,t,r))}}function dm(e){var t=e.alternate;return e===de||t!==null&&t===de}function fm(e,t){Ko=Vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nc(e,n)}}var Qi={readContext:dt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},wx={readContext:dt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:ef,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yi(4194308,4,sm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=yx.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:Zd,useDebugValue:kc,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=Zd(!1),t=e[0];return e=vx.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,o=Mt();if(le){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ce===null)throw Error(R(349));fr&30||Xp(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,ef(Zp.bind(null,r,s,e),[e]),r.flags|=2048,ms(9,Jp.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Mt(),t=Ce.identifierPrefix;if(le){var n=Xt,r=qt;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[_t]=t,e[cs]=r,Em(e,t,!1,!1),t.stateNode=e;e:{switch(i=Vl(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;ogo&&(t.flags|=128,r=!0,Lo(s,!1),t.lanes=4194304)}else{if(!r)if(e=Hi(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!le)return Oe(t),null}else 2*me()-s.renderingStartTime>go&&n!==1073741824&&(t.flags|=128,r=!0,Lo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=me(),t.sibling=null,n=ce.current,re(ce,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Oc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Xe&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Tx(e,t){switch(dc(t),t.tag){case 1:return Ge(t.type)&&Ii(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return po(),ie(Ye),ie(De),wc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xc(t),null;case 13:if(ie(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ce),null;case 4:return po(),null;case 10:return mc(t.type._context),null;case 22:case 23:return Oc(),null;case 24:return null;default:return null}}var Zs=!1,Le=!1,jx=typeof WeakSet=="function"?WeakSet:Set,_=null;function Ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pe(e,t,r)}else n.current=null}function yu(e,t,n){try{n()}catch(r){pe(e,t,r)}}var ff=!1;function Rx(e,t){if(tu=Ai,e=Rp(),uc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==n||o!==0&&h.nodeType!==3||(a=i+o),h!==s||r!==0&&h.nodeType!==3||(l=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===n&&++u===o&&(a=i),m===s&&++d===r&&(l=i),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(nu={focusedElem:e,selectionRange:n},Ai=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var p=b.memoizedProps,w=b.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:yt(t.type,p),w);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){pe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return b=ff,ff=!1,b}function qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&yu(t,n,s)}o=o.next}while(o!==r)}}function ga(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Nm(e){var t=e.alternate;t!==null&&(e.alternate=null,Nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[cs],delete t[su],delete t[fx],delete t[hx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pm(e){return e.tag===5||e.tag===3||e.tag===4}function hf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_i));else if(r!==4&&(e=e.child,e!==null))for(wu(e,t,n),e=e.sibling;e!==null;)wu(e,t,n),e=e.sibling}function bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bu(e,t,n),e=e.sibling;e!==null;)bu(e,t,n),e=e.sibling}var ke=null,St=!1;function pn(e,t,n){for(n=n.child;n!==null;)Tm(e,t,n),n=n.sibling}function Tm(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(la,n)}catch{}switch(n.tag){case 5:Le||Ur(n,t);case 6:var r=ke,o=St;ke=null,pn(e,t,n),ke=r,St=o,ke!==null&&(St?(e=ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ke.removeChild(n.stateNode));break;case 18:ke!==null&&(St?(e=ke,n=n.stateNode,e.nodeType===8?il(e.parentNode,n):e.nodeType===1&&il(e,n),ss(e)):il(ke,n.stateNode));break;case 4:r=ke,o=St,ke=n.stateNode.containerInfo,St=!0,pn(e,t,n),ke=r,St=o;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&yu(n,t,i),o=o.next}while(o!==r)}pn(e,t,n);break;case 1:if(!Le&&(Ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pe(n,t,a)}pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,pn(e,t,n),Le=r):pn(e,t,n);break;default:pn(e,t,n)}}function pf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jx),t.forEach(function(r){var o=zx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~s}if(r=o,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mx(r/1960))-r,10e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,Ki=0,X&6)throw Error(R(331));var o=X;for(X|=4,_=e.current;_!==null;){var s=_,i=s.child;if(_.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lme()-jc?lr(e,0):Tc|=n),Ke(e,t)}function _m(e,t){t===0&&(e.mode&1?(t=Hs,Hs<<=1,!(Hs&130023424)&&(Hs=4194304)):t=1);var n=ze();e=tn(e,t),e!==null&&(Ns(e,t,n),Ke(e,n))}function Fx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_m(e,n)}function zx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),_m(e,n)}var Im;Im=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,Nx(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,le&&t.flags&1048576&&Wp(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xi(e,t),e=t.pendingProps;var o=co(t,De.current);Kr(t,n),o=Sc(null,t,r,e,o,n);var s=Ec();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(s=!0,Fi(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vc(t),o.updater=ma,t.stateNode=o,o._reactInternals=t,du(t,r,e,n),t=pu(null,t,r,!0,s,n)):(t.tag=0,le&&s&&cc(t),Ie(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Wx(r),e=yt(r,e),o){case 0:t=hu(null,t,r,e,n);break e;case 1:t=uf(null,t,r,e,n);break e;case 11:t=af(null,t,r,e,n);break e;case 14:t=lf(null,t,r,yt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),hu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),uf(e,t,r,o,n);case 3:e:{if(wm(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,o=s.element,Yp(e,t),Ui(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=mo(Error(R(423)),t),t=cf(e,t,r,n,o);break e}else if(r!==o){o=mo(Error(R(424)),t),t=cf(e,t,r,n,o);break e}else for(Ze=Dn(t.stateNode.containerInfo.firstChild),et=t,le=!0,Et=null,n=Vp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fo(),r===o){t=nn(e,t,n);break e}Ie(e,t,r,n)}t=t.child}return t;case 5:return Gp(t),e===null&&lu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ru(r,o)?i=null:s!==null&&ru(r,s)&&(t.flags|=32),xm(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&lu(t),null;case 13:return bm(e,t,n);case 4:return yc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ho(t,null,r,n):Ie(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),af(e,t,r,o,n);case 7:return Ie(e,t,t.pendingProps,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,re(Wi,r._currentValue),r._currentValue=i,s!==null)if(Nt(s.value,i)){if(s.children===o.children&&!Ye.current){t=nn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Jt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),uu(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(R(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),uu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Ie(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Kr(t,n),o=dt(o),r=r(o),t.flags|=1,Ie(e,t,r,n),t.child;case 14:return r=t.type,o=yt(r,t.pendingProps),o=yt(r.type,o),lf(e,t,r,o,n);case 15:return vm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),xi(e,t),t.tag=1,Ge(r)?(e=!0,Fi(t)):e=!1,Kr(t,n),pm(t,r,o),du(t,r,o,n),pu(null,t,r,!0,e,n);case 19:return Sm(e,t,n);case 22:return ym(e,t,n)}throw Error(R(156,t.tag))};function Fm(e,t){return dp(e,t)}function $x(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new $x(e,t,n,r)}function Ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wx(e){if(typeof e=="function")return Ac(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ju)return 11;if(e===Zu)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Si(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Ac(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Lr:return ur(n.children,o,s,t);case Xu:i=8,o|=8;break;case Dl:return e=ut(12,n,t,o|2),e.elementType=Dl,e.lanes=s,e;case _l:return e=ut(13,n,t,o),e.elementType=_l,e.lanes=s,e;case Il:return e=ut(19,n,t,o),e.elementType=Il,e.lanes=s,e;case Gh:return ya(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qh:i=10;break e;case Yh:i=9;break e;case Ju:i=11;break e;case Zu:i=14;break e;case wn:i=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ut(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function ur(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function ya(e,t,n,r){return e=ut(22,e,r,t),e.elementType=Gh,e.lanes=n,e.stateNode={isHidden:!1},e}function pl(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function ml(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bx(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ka(0),this.expirationTimes=Ka(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ka(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Lc(e,t,n,r,o,s,i,a,l){return e=new Bx(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ut(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vc(s),e}function Ux(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bm)}catch(e){console.error(e)}}Bm(),Bh.exports=rt;var Rs=Bh.exports;const Um=Rh(Rs);var Hm,Sf=Rs;Hm=Sf.createRoot,Sf.hydrateRoot;const Gx=1,Kx=1e6;let gl=0;function qx(){return gl=(gl+1)%Number.MAX_SAFE_INTEGER,gl.toString()}const vl=new Map,Ef=e=>{if(vl.has(e))return;const t=setTimeout(()=>{vl.delete(e),Zo({type:"REMOVE_TOAST",toastId:e})},Kx);vl.set(e,t)},Xx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Gx)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ef(n):e.toasts.forEach(r=>{Ef(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ei=[];let Ci={toasts:[]};function Zo(e){Ci=Xx(Ci,e),Ei.forEach(t=>{t(Ci)})}function Jx({...e}){const t=qx(),n=o=>Zo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Zo({type:"DISMISS_TOAST",toastId:t});return Zo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Zx(){const[e,t]=y.useState(Ci);return y.useEffect(()=>(Ei.push(t),()=>{const n=Ei.indexOf(t);n>-1&&Ei.splice(n,1)}),[e]),{...e,toast:Jx,dismiss:n=>Zo({type:"DISMISS_TOAST",toastId:n})}}function ue(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Cf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vm(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Cf(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o{const{children:i,...a}=s,l=y.useMemo(()=>a,Object.values(a));return c.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=y.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Os(e,t=[]){let n=[];function r(s,i){const a=y.createContext(i),l=n.length;n=[...n,i];const u=h=>{var v;const{scope:m,children:f,...b}=h,p=((v=m==null?void 0:m[e])==null?void 0:v[l])||a,w=y.useMemo(()=>b,Object.values(b));return c.jsx(p.Provider,{value:w,children:f})};u.displayName=s+"Provider";function d(h,m){var p;const f=((p=m==null?void 0:m[e])==null?void 0:p[l])||a,b=y.useContext(f);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>y.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,tw(o,...t)]}function tw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const h=l(s)[`__scope${u}`];return{...a,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function vs(e){const t=rw(e),n=y.forwardRef((r,o)=>{const{children:s,...i}=r,a=y.Children.toArray(s),l=a.find(sw);if(l){const u=l.props.children,d=a.map(h=>h===l?y.Children.count(u)>1?y.Children.only(null):y.isValidElement(u)?u.props.children:null:h);return c.jsx(t,{...i,ref:o,children:y.isValidElement(u)?y.cloneElement(u,void 0,d):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var nw=vs("Slot");function rw(e){const t=y.forwardRef((n,r)=>{const{children:o,...s}=n;if(y.isValidElement(o)){const i=aw(o),a=iw(s,o.props);return o.type!==y.Fragment&&(a.ref=r?Vm(r,i):i),y.cloneElement(o,a)}return y.Children.count(o)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Qm=Symbol("radix.slottable");function ow(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qm,t}function sw(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qm}function iw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function aw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function lw(e){const t=e+"CollectionProvider",[n,r]=Os(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:w,children:v}=p,g=O.useRef(null),x=O.useRef(new Map).current;return c.jsx(o,{scope:w,itemMap:x,collectionRef:g,children:v})};i.displayName=t;const a=e+"CollectionSlot",l=vs(a),u=O.forwardRef((p,w)=>{const{scope:v,children:g}=p,x=s(a,v),S=$e(w,x.collectionRef);return c.jsx(l,{ref:S,children:g})});u.displayName=a;const d=e+"CollectionItemSlot",h="data-radix-collection-item",m=vs(d),f=O.forwardRef((p,w)=>{const{scope:v,children:g,...x}=p,S=O.useRef(null),E=$e(w,S),C=s(d,v);return O.useEffect(()=>(C.itemMap.set(S,{ref:S,...x}),()=>void C.itemMap.delete(S))),c.jsx(m,{[h]:"",ref:E,children:g})});f.displayName=d;function b(p){const w=s(e+"CollectionConsumer",p);return O.useCallback(()=>{const g=w.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((C,k)=>x.indexOf(C.ref.current)-x.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},b,r]}var uw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=uw.reduce((e,t)=>{const n=vs(`Primitive.${t}`),r=y.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ym(e,t){e&&Rs.flushSync(()=>e.dispatchEvent(t))}function Bt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function cw(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e);y.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var dw="DismissableLayer",Nu="dismissableLayer.update",fw="dismissableLayer.pointerDownOutside",hw="dismissableLayer.focusOutside",kf,Gm=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ea=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=y.useContext(Gm),[d,h]=y.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=y.useState({}),b=$e(t,k=>h(k)),p=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(w),g=d?p.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=g>=v,E=mw(k=>{const j=k.target,A=[...u.branches].some(M=>M.contains(j));!S||A||(o==null||o(k),i==null||i(k),k.defaultPrevented||a==null||a())},m),C=gw(k=>{const j=k.target;[...u.branches].some(M=>M.contains(j))||(s==null||s(k),i==null||i(k),k.defaultPrevented||a==null||a())},m);return cw(k=>{g===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},m),y.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kf=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Nf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=kf)}},[d,m,n,u]),y.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Nf())},[d,u]),y.useEffect(()=>{const k=()=>f({});return document.addEventListener(Nu,k),()=>document.removeEventListener(Nu,k)},[]),c.jsx(ye.div,{...l,ref:b,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:ue(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ue(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ue(e.onPointerDownCapture,E.onPointerDownCapture)})});Ea.displayName=dw;var pw="DismissableLayerBranch",Km=y.forwardRef((e,t)=>{const n=y.useContext(Gm),r=y.useRef(null),o=$e(t,r);return y.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(ye.div,{...e,ref:o})});Km.displayName=pw;function mw(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){qm(fw,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function gw(e,t=globalThis==null?void 0:globalThis.document){const n=Bt(e),r=y.useRef(!1);return y.useEffect(()=>{const o=s=>{s.target&&!r.current&&qm(hw,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Nf(){const e=new CustomEvent(Nu);document.dispatchEvent(e)}function qm(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ym(o,s):o.dispatchEvent(s)}var vw=Ea,yw=Km,rn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},xw="Portal",Fc=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=y.useState(!1);rn(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Um.createPortal(c.jsx(ye.div,{...r,ref:t}),i):null});Fc.displayName=xw;function ww(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var So=e=>{const{present:t,children:n}=e,r=bw(t),o=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),s=$e(r.ref,Sw(o));return typeof n=="function"||r.isPresent?y.cloneElement(o,{ref:s}):null};So.displayName="Presence";function bw(e){const[t,n]=y.useState(),r=y.useRef(null),o=y.useRef(e),s=y.useRef("none"),i=e?"mounted":"unmounted",[a,l]=ww(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const u=ni(r.current);s.current=a==="mounted"?u:"none"},[a]),rn(()=>{const u=r.current,d=o.current;if(d!==e){const m=s.current,f=ni(u);e?l("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),rn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=f=>{const p=ni(r.current).includes(f.animationName);if(f.target===t&&p&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=f=>{f.target===t&&(s.current=ni(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ni(e){return(e==null?void 0:e.animationName)||"none"}function Sw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ew=Yu[" useInsertionEffect ".trim().toString()]||rn;function Xm({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Cw({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=y.useRef(e!==void 0);y.useEffect(()=>{const h=d.current;h!==a&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=y.useCallback(d=>{var h;if(a){const m=kw(d)?d(e):d;m!==e&&((h=i.current)==null||h.call(i,m))}else s(d)},[a,e,s,i]);return[l,u]}function Cw({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),o=y.useRef(n),s=y.useRef(t);return Ew(()=>{s.current=t},[t]),y.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function kw(e){return typeof e=="function"}var Nw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pw="VisuallyHidden",Ca=y.forwardRef((e,t)=>c.jsx(ye.span,{...e,ref:t,style:{...Nw,...e.style}}));Ca.displayName=Pw;var Tw=Ca,zc="ToastProvider",[$c,jw,Rw]=lw("Toast"),[Jm,lP]=Os("Toast",[Rw]),[Ow,ka]=Jm(zc),Zm=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=y.useState(null),[u,d]=y.useState(0),h=y.useRef(!1),m=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${zc}\`. Expected non-empty \`string\`.`),c.jsx($c.Provider,{scope:t,children:c.jsx(Ow,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>d(f=>f+1),[]),onToastRemove:y.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:m,children:i})})};Zm.displayName=zc;var eg="ToastViewport",Mw=["F8"],Pu="toast.viewportPause",Tu="toast.viewportResume",tg=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Mw,label:o="Notifications ({hotkey})",...s}=e,i=ka(eg,n),a=jw(n),l=y.useRef(null),u=y.useRef(null),d=y.useRef(null),h=y.useRef(null),m=$e(t,h,i.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=i.toastCount>0;y.useEffect(()=>{const w=v=>{var x;r.length!==0&&r.every(S=>v[S]||v.code===S)&&((x=h.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),y.useEffect(()=>{const w=l.current,v=h.current;if(b&&w&&v){const g=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent(Pu);v.dispatchEvent(C),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const C=new CustomEvent(Tu);v.dispatchEvent(C),i.isClosePausedRef.current=!1}},S=C=>{!w.contains(C.relatedTarget)&&x()},E=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",g),w.addEventListener("focusout",S),w.addEventListener("pointermove",g),w.addEventListener("pointerleave",E),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",g),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",g),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[b,i.isClosePausedRef]);const p=y.useCallback(({tabbingDirection:w})=>{const g=a().map(x=>{const S=x.ref.current,E=[S,...Vw(S)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?g.reverse():g).flat()},[a]);return y.useEffect(()=>{const w=h.current;if(w){const v=g=>{var E,C,k;const x=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!x){const j=document.activeElement,A=g.shiftKey;if(g.target===w&&A){(E=u.current)==null||E.focus();return}const I=p({tabbingDirection:A?"backwards":"forwards"}),Q=I.findIndex(L=>L===j);yl(I.slice(Q+1))?g.preventDefault():A?(C=u.current)==null||C.focus():(k=d.current)==null||k.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[a,p]),c.jsxs(yw,{ref:l,role:"region","aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&c.jsx(ju,{ref:u,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"forwards"});yl(w)}}),c.jsx($c.Slot,{scope:n,children:c.jsx(ye.ol,{tabIndex:-1,...s,ref:m})}),b&&c.jsx(ju,{ref:d,onFocusFromOutsideViewport:()=>{const w=p({tabbingDirection:"backwards"});yl(w)}})]})});tg.displayName=eg;var ng="ToastFocusProxy",ju=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=ka(ng,n);return c.jsx(Ca,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});ju.displayName=ng;var Ms="Toast",Aw="toast.swipeStart",Lw="toast.swipeMove",Dw="toast.swipeCancel",_w="toast.swipeEnd",rg=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=Xm({prop:r,defaultProp:o??!0,onChange:s,caller:Ms});return c.jsx(So,{present:n||a,children:c.jsx(zw,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:Bt(e.onPause),onResume:Bt(e.onResume),onSwipeStart:ue(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ue(e.onSwipeMove,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ue(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ue(e.onSwipeEnd,u=>{const{x:d,y:h}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),l(!1)})})})});rg.displayName=Ms;var[Iw,Fw]=Jm(Ms,{onClose(){}}),zw=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:h,onSwipeCancel:m,onSwipeEnd:f,...b}=e,p=ka(Ms,n),[w,v]=y.useState(null),g=$e(t,L=>v(L)),x=y.useRef(null),S=y.useRef(null),E=o||p.duration,C=y.useRef(0),k=y.useRef(E),j=y.useRef(0),{onToastAdd:A,onToastRemove:M}=p,z=Bt(()=>{var K;(w==null?void 0:w.contains(document.activeElement))&&((K=p.viewport)==null||K.focus()),i()}),I=y.useCallback(L=>{!L||L===1/0||(window.clearTimeout(j.current),C.current=new Date().getTime(),j.current=window.setTimeout(z,L))},[z]);y.useEffect(()=>{const L=p.viewport;if(L){const K=()=>{I(k.current),u==null||u()},$=()=>{const U=new Date().getTime()-C.current;k.current=k.current-U,window.clearTimeout(j.current),l==null||l()};return L.addEventListener(Pu,$),L.addEventListener(Tu,K),()=>{L.removeEventListener(Pu,$),L.removeEventListener(Tu,K)}}},[p.viewport,E,l,u,I]),y.useEffect(()=>{s&&!p.isClosePausedRef.current&&I(E)},[s,E,p.isClosePausedRef,I]),y.useEffect(()=>(A(),()=>M()),[A,M]);const Q=y.useMemo(()=>w?cg(w):null,[w]);return p.viewport?c.jsxs(c.Fragment,{children:[Q&&c.jsx($w,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),c.jsx(Iw,{scope:n,onClose:z,children:Rs.createPortal(c.jsx($c.ItemSlot,{scope:n,children:c.jsx(vw,{asChild:!0,onEscapeKeyDown:ue(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||z(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ue(e.onKeyDown,L=>{L.key==="Escape"&&(a==null||a(L.nativeEvent),L.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:ue(e.onPointerDown,L=>{L.button===0&&(x.current={x:L.clientX,y:L.clientY})}),onPointerMove:ue(e.onPointerMove,L=>{if(!x.current)return;const K=L.clientX-x.current.x,$=L.clientY-x.current.y,U=!!S.current,P=["left","right"].includes(p.swipeDirection),T=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,D=P?T(0,K):0,H=P?0:T(0,$),F=L.pointerType==="touch"?10:2,Y={x:D,y:H},q={originalEvent:L,delta:Y};U?(S.current=Y,ri(Lw,h,q,{discrete:!1})):Pf(Y,p.swipeDirection,F)?(S.current=Y,ri(Aw,d,q,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(K)>F||Math.abs($)>F)&&(x.current=null)}),onPointerUp:ue(e.onPointerUp,L=>{const K=S.current,$=L.target;if($.hasPointerCapture(L.pointerId)&&$.releasePointerCapture(L.pointerId),S.current=null,x.current=null,K){const U=L.currentTarget,P={originalEvent:L,delta:K};Pf(K,p.swipeDirection,p.swipeThreshold)?ri(_w,f,P,{discrete:!0}):ri(Dw,m,P,{discrete:!0}),U.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),$w=e=>{const{__scopeToast:t,children:n,...r}=e,o=ka(Ms,t),[s,i]=y.useState(!1),[a,l]=y.useState(!1);return Uw(()=>i(!0)),y.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:c.jsx(Fc,{asChild:!0,children:c.jsx(Ca,{...r,children:s&&c.jsxs(c.Fragment,{children:[o.label," ",n]})})})},Ww="ToastTitle",og=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ye.div,{...r,ref:t})});og.displayName=Ww;var Bw="ToastDescription",sg=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(ye.div,{...r,ref:t})});sg.displayName=Bw;var ig="ToastAction",ag=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(ug,{altText:n,asChild:!0,children:c.jsx(Wc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ig}\`. Expected non-empty \`string\`.`),null)});ag.displayName=ig;var lg="ToastClose",Wc=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Fw(lg,n);return c.jsx(ug,{asChild:!0,children:c.jsx(ye.button,{type:"button",...r,ref:t,onClick:ue(e.onClick,o.onClose)})})});Wc.displayName=lg;var ug=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return c.jsx(ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function cg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Hw(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...cg(r))}}),t}function ri(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ym(o,s):o.dispatchEvent(s)}var Pf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function Uw(e=()=>{}){const t=Bt(e);rn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Hw(e){return e.nodeType===e.ELEMENT_NODE}function Vw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Qw=Zm,dg=tg,fg=rg,hg=og,pg=sg,mg=ag,gg=Wc;function vg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,jf=yg,xg=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;const m=Tf(d)||Tf(h);return o[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,m]=d;return m===void 0||(u[h]=m),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:m,...f}=d;return Object.entries(f).every(b=>{let[p,w]=b;return Array.isArray(w)?w.includes({...s,...a}[p]):{...s,...a}[p]===w})?[...u,h,m]:u},[]);return jf(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Gw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kw=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>y.createElement("svg",{ref:l,...Gw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wg("lucide",o),...a},[...i.map(([u,d])=>y.createElement(u,d)),...Array.isArray(s)?s:[s]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const br=(e,t)=>{const n=y.forwardRef(({className:r,...o},s)=>y.createElement(Kw,{ref:s,iconNode:t,className:wg(`lucide-${Yw(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qw=br("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Me=br("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xl=br("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xw=br("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jw=br("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zw=br("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xe=br("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Bc="-",e1=e=>{const t=n1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Bc);return a[0]===""&&a.length!==1&&a.shift(),bg(a,t)||t1(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},bg=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?bg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Bc);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Rf=/^\[(.+)\]$/,t1=e=>{if(Rf.test(e)){const t=Rf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},n1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return o1(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ru(i,r,s,t)}),r},Ru=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Of(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(r1(o)){Ru(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ru(i,Of(t,s),n,r)})})},Of=(e,t)=>{let n=e;return t.split(Bc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},r1=e=>e.isThemeGetter,o1=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,s1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Sg="!",i1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,d=0,h;for(let w=0;wd?h-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:i}):i},a1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},l1=e=>({cache:s1(e.cacheSize),parseClassName:i1(e),...e1(e)}),u1=/\s+/,c1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(u1);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:d,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:f}=n(u);let b=!!f,p=r(b?m.substring(0,f):m);if(!p){if(!b){a=u+(a.length>0?" "+a:a);continue}if(p=r(m),!p){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=a1(d).join(":"),v=h?w+Sg:w,g=v+p;if(s.includes(g))continue;s.push(g);const x=o(p,b);for(let S=0;S0?" "+a:a)}return a};function d1(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rh(d),e());return n=l1(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=c1(l,n);return o(l,d),d}return function(){return s(d1.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Cg=/^\[(?:([a-z-]+):)?(.+)\]$/i,h1=/^\d+\/\d+$/,p1=new Set(["px","full","screen"]),m1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,y1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,x1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vt=e=>Xr(e)||p1.has(e)||h1.test(e),mn=e=>Eo(e,"length",P1),Xr=e=>!!e&&!Number.isNaN(Number(e)),wl=e=>Eo(e,"number",Xr),_o=e=>!!e&&Number.isInteger(Number(e)),w1=e=>e.endsWith("%")&&Xr(e.slice(0,-1)),V=e=>Cg.test(e),gn=e=>m1.test(e),b1=new Set(["length","size","percentage"]),S1=e=>Eo(e,b1,kg),E1=e=>Eo(e,"position",kg),C1=new Set(["image","url"]),k1=e=>Eo(e,C1,j1),N1=e=>Eo(e,"",T1),Io=()=>!0,Eo=(e,t,n)=>{const r=Cg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},P1=e=>g1.test(e)&&!v1.test(e),kg=()=>!1,T1=e=>y1.test(e),j1=e=>x1.test(e),R1=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),o=oe("borderColor"),s=oe("borderRadius"),i=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),d=oe("hueRotate"),h=oe("invert"),m=oe("gap"),f=oe("gradientColorStops"),b=oe("gradientColorStopPositions"),p=oe("inset"),w=oe("margin"),v=oe("opacity"),g=oe("padding"),x=oe("saturate"),S=oe("scale"),E=oe("sepia"),C=oe("skew"),k=oe("space"),j=oe("translate"),A=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",V,t],I=()=>[V,t],Q=()=>["",Vt,mn],L=()=>["auto",Xr,V],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",V],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Xr,V];return{cacheSize:500,separator:":",theme:{colors:[Io],spacing:[Vt,mn],blur:["none","",gn,V],brightness:H(),borderColor:[e],borderRadius:["none","","full",gn,V],borderSpacing:I(),borderWidth:Q(),contrast:H(),grayscale:T(),hueRotate:H(),invert:T(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[w1,mn],inset:z(),margin:z(),opacity:H(),padding:I(),saturate:H(),scale:H(),sepia:T(),skew:H(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[gn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),V]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_o,V]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",_o,V]}],"grid-cols":[{"grid-cols":[Io]}],"col-start-end":[{col:["auto",{span:["full",_o,V]},V]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Io]}],"row-start-end":[{row:["auto",{span:[_o,V]},V]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[gn]},gn]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",gn,mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wl]}],"font-family":[{font:[Io]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",Xr,wl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Vt,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Vt,mn]}],"underline-offset":[{"underline-offset":["auto",Vt,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),E1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",S1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},k1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Vt,V]}],"outline-w":[{outline:[Vt,mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Vt,mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",gn,N1]}],"shadow-color":[{shadow:[Io]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",gn,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[_o,V]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vt,mn,wl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},O1=f1(R1);function Se(...e){return O1(yg(e))}const M1=Qw,Ng=y.forwardRef(({className:e,...t},n)=>c.jsx(dg,{ref:n,className:Se("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Ng.displayName=dg.displayName;const A1=xg("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Pg=y.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(fg,{ref:r,className:Se(A1({variant:t}),e),...n}));Pg.displayName=fg.displayName;const L1=y.forwardRef(({className:e,...t},n)=>c.jsx(mg,{ref:n,className:Se("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));L1.displayName=mg.displayName;const Tg=y.forwardRef(({className:e,...t},n)=>c.jsx(gg,{ref:n,className:Se("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:c.jsx(xe,{className:"h-4 w-4"})}));Tg.displayName=gg.displayName;const jg=y.forwardRef(({className:e,...t},n)=>c.jsx(hg,{ref:n,className:Se("text-sm font-semibold",e),...t}));jg.displayName=hg.displayName;const Rg=y.forwardRef(({className:e,...t},n)=>c.jsx(pg,{ref:n,className:Se("text-sm opacity-90",e),...t}));Rg.displayName=pg.displayName;function D1(){const{toasts:e}=Zx();return c.jsxs(M1,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return c.jsxs(Pg,{...s,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(jg,{children:n}),r&&c.jsx(Rg,{children:r})]}),o,c.jsx(Tg,{})]},t)}),c.jsx(Ng,{})]})}var Mf=["light","dark"],_1="(prefers-color-scheme: dark)",I1=y.createContext(void 0),F1={setTheme:e=>{},themes:[]},z1=()=>{var e;return(e=y.useContext(I1))!=null?e:F1};y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=o?Mf.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(b,p=!1,w=!0)=>{let v=i?i[b]:b,g=p?b+"|| ''":`'${v}'`,x="";return o&&w&&!p&&Mf.includes(b)&&(x+=`d.style.colorScheme = '${b}';`),n==="class"?p||v?x+=`c.add(${g})`:x+="null":v&&(x+=`d[s](n,${g})`),x},f=e?`!function(){${d}${m(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${_1}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}${u?"":"else{"+m(s,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${m(i?"x[e]":"e",!0)}}else{${m(s,!1,!1)};}${h}}catch(t){}}();`;return y.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:f}})});var $1=e=>{switch(e){case"success":return U1;case"info":return V1;case"warning":return H1;case"error":return Q1;default:return null}},W1=Array(12).fill(0),B1=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},W1.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),U1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),H1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),V1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Q1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Y1=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),G1=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ou=1,K1=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ou++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],O.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(X1(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,d=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ou++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},He=new K1,q1=(e,t)=>{let n=(t==null?void 0:t.id)||Ou++;return He.addToast({title:e,...t,id:n}),n},X1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",J1=q1,Z1=()=>He.toasts,eb=()=>He.getActiveToasts();Object.assign(J1,{success:He.success,info:He.info,warning:He.warning,error:He.error,custom:He.custom,message:He.message,promise:He.promise,dismiss:He.dismiss,loading:He.loading},{getHistory:Z1,getToasts:eb});function tb(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}tb(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function oi(e){return e.label!==void 0}var nb=3,rb="32px",ob="16px",Af=4e3,sb=356,ib=14,ab=20,lb=200;function vt(...e){return e.filter(Boolean).join(" ")}function ub(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var cb=e=>{var t,n,r,o,s,i,a,l,u,d,h;let{invert:m,toast:f,unstyled:b,interacting:p,setHeights:w,visibleToasts:v,heights:g,index:x,toasts:S,expanded:E,removeToast:C,defaultRichColors:k,closeButton:j,style:A,cancelButtonStyle:M,actionButtonStyle:z,className:I="",descriptionClassName:Q="",duration:L,position:K,gap:$,loadingIcon:U,expandByDefault:P,classNames:T,icons:D,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:F}=e,[Y,q]=O.useState(null),[ge,Te]=O.useState(null),[Z,Sr]=O.useState(!1),[ln,Yn]=O.useState(!1),[un,Er]=O.useState(!1),[cn,Ds]=O.useState(!1),[za,_s]=O.useState(!1),[$a,No]=O.useState(0),[Cr,id]=O.useState(0),Po=O.useRef(f.duration||L||Af),ad=O.useRef(null),Gn=O.useRef(null),hy=x===0,py=x+1<=v,st=f.type,kr=f.dismissible!==!1,my=f.className||"",gy=f.descriptionClassName||"",Is=O.useMemo(()=>g.findIndex(W=>W.toastId===f.id)||0,[g,f.id]),vy=O.useMemo(()=>{var W;return(W=f.closeButton)!=null?W:j},[f.closeButton,j]),ld=O.useMemo(()=>f.duration||L||Af,[f.duration,L]),Wa=O.useRef(0),Nr=O.useRef(0),ud=O.useRef(0),Pr=O.useRef(null),[yy,xy]=K.split("-"),cd=O.useMemo(()=>g.reduce((W,ne,ae)=>ae>=Is?W:W+ne.height,0),[g,Is]),dd=G1(),wy=f.invert||m,Ba=st==="loading";Nr.current=O.useMemo(()=>Is*$+cd,[Is,cd]),O.useEffect(()=>{Po.current=ld},[ld]),O.useEffect(()=>{Sr(!0)},[]),O.useEffect(()=>{let W=Gn.current;if(W){let ne=W.getBoundingClientRect().height;return id(ne),w(ae=>[{toastId:f.id,height:ne,position:f.position},...ae]),()=>w(ae=>ae.filter(ht=>ht.toastId!==f.id))}},[w,f.id]),O.useLayoutEffect(()=>{if(!Z)return;let W=Gn.current,ne=W.style.height;W.style.height="auto";let ae=W.getBoundingClientRect().height;W.style.height=ne,id(ae),w(ht=>ht.find(pt=>pt.toastId===f.id)?ht.map(pt=>pt.toastId===f.id?{...pt,height:ae}:pt):[{toastId:f.id,height:ae,position:f.position},...ht])},[Z,f.title,f.description,w,f.id]);let dn=O.useCallback(()=>{Yn(!0),No(Nr.current),w(W=>W.filter(ne=>ne.toastId!==f.id)),setTimeout(()=>{C(f)},lb)},[f,C,w,Nr]);O.useEffect(()=>{if(f.promise&&st==="loading"||f.duration===1/0||f.type==="loading")return;let W;return E||p||F&&dd?(()=>{if(ud.current{var ne;(ne=f.onAutoClose)==null||ne.call(f,f),dn()},Po.current)),()=>clearTimeout(W)},[E,p,f,st,F,dd,dn]),O.useEffect(()=>{f.delete&&dn()},[dn,f.delete]);function by(){var W,ne,ae;return D!=null&&D.loading?O.createElement("div",{className:vt(T==null?void 0:T.loader,(W=f==null?void 0:f.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":st==="loading"},D.loading):U?O.createElement("div",{className:vt(T==null?void 0:T.loader,(ne=f==null?void 0:f.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":st==="loading"},U):O.createElement(B1,{className:vt(T==null?void 0:T.loader,(ae=f==null?void 0:f.classNames)==null?void 0:ae.loader),visible:st==="loading"})}return O.createElement("li",{tabIndex:0,ref:Gn,className:vt(I,my,T==null?void 0:T.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,T==null?void 0:T.default,T==null?void 0:T[st],(n=f==null?void 0:f.classNames)==null?void 0:n[st]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":Z,"data-promise":!!f.promise,"data-swiped":za,"data-removed":ln,"data-visible":py,"data-y-position":yy,"data-x-position":xy,"data-index":x,"data-front":hy,"data-swiping":un,"data-dismissible":kr,"data-type":st,"data-invert":wy,"data-swipe-out":cn,"data-swipe-direction":ge,"data-expanded":!!(E||P&&Z),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${ln?$a:Nr.current}px`,"--initial-height":P?"auto":`${Cr}px`,...A,...f.style},onDragEnd:()=>{Er(!1),q(null),Pr.current=null},onPointerDown:W=>{Ba||!kr||(ad.current=new Date,No(Nr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(Er(!0),Pr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,ne,ae,ht;if(cn||!kr)return;Pr.current=null;let pt=Number(((W=Gn.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),fn=Number(((ne=Gn.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Kn=new Date().getTime()-((ae=ad.current)==null?void 0:ae.getTime()),mt=Y==="x"?pt:fn,hn=Math.abs(mt)/Kn;if(Math.abs(mt)>=ab||hn>.11){No(Nr.current),(ht=f.onDismiss)==null||ht.call(f,f),Te(Y==="x"?pt>0?"right":"left":fn>0?"down":"up"),dn(),Ds(!0),_s(!1);return}Er(!1),q(null)},onPointerMove:W=>{var ne,ae,ht,pt;if(!Pr.current||!kr||((ne=window.getSelection())==null?void 0:ne.toString().length)>0)return;let fn=W.clientY-Pr.current.y,Kn=W.clientX-Pr.current.x,mt=(ae=e.swipeDirections)!=null?ae:ub(K);!Y&&(Math.abs(Kn)>1||Math.abs(fn)>1)&&q(Math.abs(Kn)>Math.abs(fn)?"x":"y");let hn={x:0,y:0};Y==="y"?(mt.includes("top")||mt.includes("bottom"))&&(mt.includes("top")&&fn<0||mt.includes("bottom")&&fn>0)&&(hn.y=fn):Y==="x"&&(mt.includes("left")||mt.includes("right"))&&(mt.includes("left")&&Kn<0||mt.includes("right")&&Kn>0)&&(hn.x=Kn),(Math.abs(hn.x)>0||Math.abs(hn.y)>0)&&_s(!0),(ht=Gn.current)==null||ht.style.setProperty("--swipe-amount-x",`${hn.x}px`),(pt=Gn.current)==null||pt.style.setProperty("--swipe-amount-y",`${hn.y}px`)}},vy&&!f.jsx?O.createElement("button",{"aria-label":H,"data-disabled":Ba,"data-close-button":!0,onClick:Ba||!kr?()=>{}:()=>{var W;dn(),(W=f.onDismiss)==null||W.call(f,f)},className:vt(T==null?void 0:T.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.closeButton)},(s=D==null?void 0:D.close)!=null?s:Y1):null,f.jsx||y.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:O.createElement(O.Fragment,null,st||f.icon||f.promise?O.createElement("div",{"data-icon":"",className:vt(T==null?void 0:T.icon,(i=f==null?void 0:f.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||by():null,f.type!=="loading"?f.icon||(D==null?void 0:D[st])||$1(st):null):null,O.createElement("div",{"data-content":"",className:vt(T==null?void 0:T.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:vt(T==null?void 0:T.title,(l=f==null?void 0:f.classNames)==null?void 0:l.title)},typeof f.title=="function"?f.title():f.title),f.description?O.createElement("div",{"data-description":"",className:vt(Q,gy,T==null?void 0:T.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),y.isValidElement(f.cancel)?f.cancel:f.cancel&&oi(f.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||M,onClick:W=>{var ne,ae;oi(f.cancel)&&kr&&((ae=(ne=f.cancel).onClick)==null||ae.call(ne,W),dn())},className:vt(T==null?void 0:T.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,y.isValidElement(f.action)?f.action:f.action&&oi(f.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||z,onClick:W=>{var ne,ae;oi(f.action)&&((ae=(ne=f.action).onClick)==null||ae.call(ne,W),!W.defaultPrevented&&dn())},className:vt(T==null?void 0:T.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function Lf(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function db(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?ob:rb;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var fb=y.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:d="light",richColors:h,duration:m,style:f,visibleToasts:b=nb,toastOptions:p,dir:w=Lf(),gap:v=ib,loadingIcon:g,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:E}=e,[C,k]=O.useState([]),j=O.useMemo(()=>Array.from(new Set([r].concat(C.filter(F=>F.position).map(F=>F.position)))),[C,r]),[A,M]=O.useState([]),[z,I]=O.useState(!1),[Q,L]=O.useState(!1),[K,$]=O.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=O.useRef(null),P=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=O.useRef(null),D=O.useRef(!1),H=O.useCallback(F=>{k(Y=>{var q;return(q=Y.find(ge=>ge.id===F.id))!=null&&q.delete||He.dismiss(F.id),Y.filter(({id:ge})=>ge!==F.id)})},[]);return O.useEffect(()=>He.subscribe(F=>{if(F.dismiss){k(Y=>Y.map(q=>q.id===F.id?{...q,delete:!0}:q));return}setTimeout(()=>{Um.flushSync(()=>{k(Y=>{let q=Y.findIndex(ge=>ge.id===F.id);return q!==-1?[...Y.slice(0,q),{...Y[q],...F},...Y.slice(q+1)]:[F,...Y]})})})}),[]),O.useEffect(()=>{if(d!=="system"){$(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:Y})=>{$(Y?"dark":"light")})}catch{F.addListener(({matches:q})=>{try{$(q?"dark":"light")}catch(ge){console.error(ge)}})}},[d]),O.useEffect(()=>{C.length<=1&&I(!1)},[C]),O.useEffect(()=>{let F=Y=>{var q,ge;o.every(Te=>Y[Te]||Y.code===Te)&&(I(!0),(q=U.current)==null||q.focus()),Y.code==="Escape"&&(document.activeElement===U.current||(ge=U.current)!=null&&ge.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[o]),O.useEffect(()=>{if(U.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,D.current=!1)}},[U.current]),O.createElement("section",{ref:t,"aria-label":`${S} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((F,Y)=>{var q;let[ge,Te]=F.split("-");return C.length?O.createElement("ol",{key:F,dir:w==="auto"?Lf():w,tabIndex:-1,ref:U,className:a,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":ge,"data-lifted":z&&C.length>1&&!s,"data-x-position":Te,style:{"--front-toast-height":`${((q=A[0])==null?void 0:q.height)||0}px`,"--width":`${sb}px`,"--gap":`${v}px`,...f,...db(l,u)},onBlur:Z=>{D.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(D.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||D.current||(D.current=!0,T.current=Z.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{Q||I(!1)},onDragEnd:()=>I(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},C.filter(Z=>!Z.position&&Y===0||Z.position===F).map((Z,Sr)=>{var ln,Yn;return O.createElement(cb,{key:Z.id,icons:x,index:Sr,toast:Z,defaultRichColors:h,duration:(ln=p==null?void 0:p.duration)!=null?ln:m,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:n,visibleToasts:b,closeButton:(Yn=p==null?void 0:p.closeButton)!=null?Yn:i,interacting:Q,position:F,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,removeToast:H,toasts:C.filter(un=>un.position==Z.position),heights:A.filter(un=>un.position==Z.position),setHeights:M,expandByDefault:s,gap:v,loadingIcon:g,expanded:z,pauseWhenPageIsHidden:E,swipeDirections:e.swipeDirections})})):null}))});const hb=({...e})=>{const{theme:t="system"}=z1();return c.jsx(fb,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var pb=Yu[" useId ".trim().toString()]||(()=>{}),mb=0;function bl(e){const[t,n]=y.useState(pb());return rn(()=>{e||n(r=>r??String(mb++))},[e]),e||(t?`radix-${t}`:"")}const gb=["top","right","bottom","left"],Bn=Math.min,Je=Math.max,Ji=Math.round,si=Math.floor,Wt=e=>({x:e,y:e}),vb={left:"right",right:"left",bottom:"top",top:"bottom"},yb={start:"end",end:"start"};function Mu(e,t,n){return Je(e,Bn(t,n))}function on(e,t){return typeof e=="function"?e(t):e}function sn(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function Uc(e){return e==="x"?"y":"x"}function Hc(e){return e==="y"?"height":"width"}const xb=new Set(["top","bottom"]);function Ft(e){return xb.has(sn(e))?"y":"x"}function Vc(e){return Uc(Ft(e))}function wb(e,t,n){n===void 0&&(n=!1);const r=Co(e),o=Vc(e),s=Hc(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Zi(i)),[i,Zi(i)]}function bb(e){const t=Zi(e);return[Au(e),t,Au(t)]}function Au(e){return e.replace(/start|end/g,t=>yb[t])}const Df=["left","right"],_f=["right","left"],Sb=["top","bottom"],Eb=["bottom","top"];function Cb(e,t,n){switch(e){case"top":case"bottom":return n?t?_f:Df:t?Df:_f;case"left":case"right":return t?Sb:Eb;default:return[]}}function kb(e,t,n,r){const o=Co(e);let s=Cb(sn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Au)))),s}function Zi(e){return e.replace(/left|right|bottom|top/g,t=>vb[t])}function Nb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Og(e){return typeof e!="number"?Nb(e):{top:e,right:e,bottom:e,left:e}}function ea(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function If(e,t,n){let{reference:r,floating:o}=e;const s=Ft(t),i=Vc(t),a=Hc(i),l=sn(t),u=s==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-o.width,y:h};break;default:f={x:r.x,y:r.y}}switch(Co(t)){case"start":f[i]-=m*(n&&u?-1:1);break;case"end":f[i]+=m*(n&&u?-1:1);break}return f}const Pb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=If(u,r,l),m=r,f={},b=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=on(e,t)||{};if(u==null)return{};const h=Og(d),m={x:n,y:r},f=Vc(o),b=Hc(f),p=await i.getDimensions(u),w=f==="y",v=w?"top":"left",g=w?"bottom":"right",x=w?"clientHeight":"clientWidth",S=s.reference[b]+s.reference[f]-m[f]-s.floating[b],E=m[f]-s.reference[f],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let k=C?C[x]:0;(!k||!await(i.isElement==null?void 0:i.isElement(C)))&&(k=a.floating[x]||s.floating[b]);const j=S/2-E/2,A=k/2-p[b]/2-1,M=Bn(h[v],A),z=Bn(h[g],A),I=M,Q=k-p[b]-z,L=k/2-p[b]/2+j,K=Mu(I,L,Q),$=!l.arrow&&Co(o)!=null&&L!==K&&s.reference[b]/2-(LL<=0)){var z,I;const L=(((z=s.flip)==null?void 0:z.index)||0)+1,K=k[L];if(K&&(!(h==="alignment"?g!==Ft(K):!1)||M.every(P=>P.overflows[0]>0&&Ft(P.placement)===g)))return{data:{index:L,overflows:M},reset:{placement:K}};let $=(I=M.filter(U=>U.overflows[0]<=0).sort((U,P)=>U.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!$)switch(f){case"bestFit":{var Q;const U=(Q=M.filter(P=>{if(C){const T=Ft(P.placement);return T===g||T==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(T=>T>0).reduce((T,D)=>T+D,0)]).sort((P,T)=>P[1]-T[1])[0])==null?void 0:Q[0];U&&($=U);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Ff(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zf(e){return gb.some(t=>e[t]>=0)}const Rb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=on(e,t);switch(r){case"referenceHidden":{const s=await ys(t,{...o,elementContext:"reference"}),i=Ff(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:zf(i)}}}case"escaped":{const s=await ys(t,{...o,altBoundary:!0}),i=Ff(s,n.floating);return{data:{escapedOffsets:i,escaped:zf(i)}}}default:return{}}}}},Mg=new Set(["left","top"]);async function Ob(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=sn(n),a=Co(n),l=Ft(n)==="y",u=Mg.has(i)?-1:1,d=s&&l?-1:1,h=on(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof b=="number"&&(f=a==="end"?b*-1:b),l?{x:f*d,y:m*u}:{x:m*u,y:f*d}}const Mb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Ob(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Ab=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:v,y:g}=w;return{x:v,y:g}}},...l}=on(e,t),u={x:n,y:r},d=await ys(t,l),h=Ft(sn(o)),m=Uc(h);let f=u[m],b=u[h];if(s){const w=m==="y"?"top":"left",v=m==="y"?"bottom":"right",g=f+d[w],x=f-d[v];f=Mu(g,f,x)}if(i){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",g=b+d[w],x=b-d[v];b=Mu(g,b,x)}const p=a.fn({...t,[m]:f,[h]:b});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[m]:s,[h]:i}}}}}},Lb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=on(e,t),d={x:n,y:r},h=Ft(o),m=Uc(h);let f=d[m],b=d[h];const p=on(a,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const x=m==="y"?"height":"width",S=s.reference[m]-s.floating[x]+w.mainAxis,E=s.reference[m]+s.reference[x]-w.mainAxis;fE&&(f=E)}if(u){var v,g;const x=m==="y"?"width":"height",S=Mg.has(sn(o)),E=s.reference[h]-s.floating[x]+(S&&((v=i.offset)==null?void 0:v[h])||0)+(S?0:w.crossAxis),C=s.reference[h]+s.reference[x]+(S?0:((g=i.offset)==null?void 0:g[h])||0)-(S?w.crossAxis:0);bC&&(b=C)}return{[m]:f,[h]:b}}}},Db=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=on(e,t),d=await ys(t,u),h=sn(o),m=Co(o),f=Ft(o)==="y",{width:b,height:p}=s.floating;let w,v;h==="top"||h==="bottom"?(w=h,v=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=h,w=m==="end"?"top":"bottom");const g=p-d.top-d.bottom,x=b-d.left-d.right,S=Bn(p-d[w],g),E=Bn(b-d[v],x),C=!t.middlewareData.shift;let k=S,j=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=g),C&&!m){const M=Je(d.left,0),z=Je(d.right,0),I=Je(d.top,0),Q=Je(d.bottom,0);f?j=b-2*(M!==0||z!==0?M+z:Je(d.left,d.right)):k=p-2*(I!==0||Q!==0?I+Q:Je(d.top,d.bottom))}await l({...t,availableWidth:j,availableHeight:k});const A=await i.getDimensions(a.floating);return b!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function Na(){return typeof window<"u"}function ko(e){return Ag(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ht(e){var t;return(t=(Ag(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ag(e){return Na()?e instanceof Node||e instanceof tt(e).Node:!1}function Pt(e){return Na()?e instanceof Element||e instanceof tt(e).Element:!1}function Ut(e){return Na()?e instanceof HTMLElement||e instanceof tt(e).HTMLElement:!1}function $f(e){return!Na()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}const _b=new Set(["inline","contents"]);function As(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_b.has(o)}const Ib=new Set(["table","td","th"]);function Fb(e){return Ib.has(ko(e))}const zb=[":popover-open",":modal"];function Pa(e){return zb.some(t=>{try{return e.matches(t)}catch{return!1}})}const $b=["transform","translate","scale","rotate","perspective"],Wb=["transform","translate","scale","rotate","perspective","filter"],Bb=["paint","layout","strict","content"];function Qc(e){const t=Yc(),n=Pt(e)?Tt(e):e;return $b.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Wb.some(r=>(n.willChange||"").includes(r))||Bb.some(r=>(n.contain||"").includes(r))}function Ub(e){let t=Un(e);for(;Ut(t)&&!vo(t);){if(Qc(t))return t;if(Pa(t))return null;t=Un(t)}return null}function Yc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Hb=new Set(["html","body","#document"]);function vo(e){return Hb.has(ko(e))}function Tt(e){return tt(e).getComputedStyle(e)}function Ta(e){return Pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Un(e){if(ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$f(e)&&e.host||Ht(e);return $f(t)?t.host:t}function Lg(e){const t=Un(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(t)&&As(t)?t:Lg(t)}function xs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Lg(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=tt(o);if(s){const a=Lu(i);return t.concat(i,i.visualViewport||[],As(o)?o:[],a&&n?xs(a):[])}return t.concat(o,xs(o,[],n))}function Lu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dg(e){const t=Tt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ut(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ji(n)!==s||Ji(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Gc(e){return Pt(e)?e:e.contextElement}function Jr(e){const t=Gc(e);if(!Ut(t))return Wt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Dg(t);let i=(s?Ji(n.width):n.width)/r,a=(s?Ji(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Vb=Wt(0);function _g(e){const t=tt(e);return!Yc()||!t.visualViewport?Vb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tt(e)?!1:t}function mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Gc(e);let i=Wt(1);t&&(r?Pt(r)&&(i=Jr(r)):i=Jr(e));const a=Qb(s,n,r)?_g(s):Wt(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,h=o.height/i.y;if(s){const m=tt(s),f=r&&Pt(r)?tt(r):r;let b=m,p=Lu(b);for(;p&&r&&f!==b;){const w=Jr(p),v=p.getBoundingClientRect(),g=Tt(p),x=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*w.x,S=v.top+(p.clientTop+parseFloat(g.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,h*=w.y,l+=x,u+=S,b=tt(p),p=Lu(b)}}return ea({width:d,height:h,x:l,y:u})}function Kc(e,t){const n=Ta(e).scrollLeft;return t?t.left+n:mr(Ht(e)).left+n}function Ig(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Kc(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function Yb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Ht(r),a=t?Pa(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Wt(1);const d=Wt(0),h=Ut(r);if((h||!h&&!s)&&((ko(r)!=="body"||As(i))&&(l=Ta(r)),Ut(r))){const f=mr(r);u=Jr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const m=i&&!h&&!s?Ig(i,l,!0):Wt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-l.scrollTop*u.y+d.y+m.y}}function Gb(e){return Array.from(e.getClientRects())}function Kb(e){const t=Ht(e),n=Ta(e),r=e.ownerDocument.body,o=Je(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Je(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Kc(e);const a=-n.scrollTop;return Tt(r).direction==="rtl"&&(i+=Je(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function qb(e,t){const n=tt(e),r=Ht(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=Yc();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const Xb=new Set(["absolute","fixed"]);function Jb(e,t){const n=mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ut(e)?Jr(e):Wt(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function Wf(e,t,n){let r;if(t==="viewport")r=qb(e,n);else if(t==="document")r=Kb(Ht(e));else if(Pt(t))r=Jb(t,n);else{const o=_g(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ea(r)}function Fg(e,t){const n=Un(e);return n===t||!Pt(n)||vo(n)?!1:Tt(n).position==="fixed"||Fg(n,t)}function Zb(e,t){const n=t.get(e);if(n)return n;let r=xs(e,[],!1).filter(a=>Pt(a)&&ko(a)!=="body"),o=null;const s=Tt(e).position==="fixed";let i=s?Un(e):e;for(;Pt(i)&&!vo(i);){const a=Tt(i),l=Qc(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&Xb.has(o.position)||As(i)&&!l&&Fg(e,i))?r=r.filter(d=>d!==i):o=a,i=Un(i)}return t.set(e,r),r}function eS(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Pa(t)?[]:Zb(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,d)=>{const h=Wf(t,d,o);return u.top=Je(h.top,u.top),u.right=Bn(h.right,u.right),u.bottom=Bn(h.bottom,u.bottom),u.left=Je(h.left,u.left),u},Wf(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tS(e){const{width:t,height:n}=Dg(e);return{width:t,height:n}}function nS(e,t,n){const r=Ut(t),o=Ht(t),s=n==="fixed",i=mr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Wt(0);function u(){l.x=Kc(o)}if(r||!r&&!s)if((ko(t)!=="body"||As(o))&&(a=Ta(t)),r){const f=mr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Ig(o,a):Wt(0),h=i.left+a.scrollLeft-l.x-d.x,m=i.top+a.scrollTop-l.y-d.y;return{x:h,y:m,width:i.width,height:i.height}}function Sl(e){return Tt(e).position==="static"}function Bf(e,t){if(!Ut(e)||Tt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ht(e)===n&&(n=n.ownerDocument.body),n}function zg(e,t){const n=tt(e);if(Pa(e))return n;if(!Ut(e)){let o=Un(e);for(;o&&!vo(o);){if(Pt(o)&&!Sl(o))return o;o=Un(o)}return n}let r=Bf(e,t);for(;r&&Fb(r)&&Sl(r);)r=Bf(r,t);return r&&vo(r)&&Sl(r)&&!Qc(r)?n:r||Ub(e)||n}const rS=async function(e){const t=this.getOffsetParent||zg,n=this.getDimensions,r=await n(e.floating);return{reference:nS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oS(e){return Tt(e).direction==="rtl"}const sS={convertOffsetParentRelativeRectToViewportRelativeRect:Yb,getDocumentElement:Ht,getClippingRect:eS,getOffsetParent:zg,getElementRects:rS,getClientRects:Gb,getDimensions:tS,getScale:Jr,isElement:Pt,isRTL:oS};function $g(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iS(e,t){let n=null,r;const o=Ht(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:h,width:m,height:f}=u;if(a||t(),!m||!f)return;const b=si(h),p=si(o.clientWidth-(d+m)),w=si(o.clientHeight-(h+f)),v=si(d),x={rootMargin:-b+"px "+-p+"px "+-w+"px "+-v+"px",threshold:Je(0,Bn(1,l))||1};let S=!0;function E(C){const k=C[0].intersectionRatio;if(k!==l){if(!S)return i();k?i(!1,k):r=setTimeout(()=>{i(!1,1e-7)},1e3)}k===1&&!$g(u,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return i(!0),s}function aS(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Gc(e),d=o||s?[...u?xs(u):[],...xs(t)]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const h=u&&a?iS(u,n):null;let m=-1,f=null;i&&(f=new ResizeObserver(v=>{let[g]=v;g&&g.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let b,p=l?mr(e):null;l&&w();function w(){const v=mr(e);p&&!$g(p,v)&&n(),p=v,b=requestAnimationFrame(w)}return n(),()=>{var v;d.forEach(g=>{o&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),h==null||h(),(v=f)==null||v.disconnect(),f=null,l&&cancelAnimationFrame(b)}}const lS=Mb,uS=Ab,cS=jb,dS=Db,fS=Rb,Uf=Tb,hS=Lb,pS=(e,t,n)=>{const r=new Map,o={platform:sS,...n},s={...o.platform,_c:r};return Pb(e,t,{...o,platform:s})};var mS=typeof document<"u",gS=function(){},ki=mS?y.useLayoutEffect:gS;function ta(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ta(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ta(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Wg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hf(e,t){const n=Wg(e);return Math.round(t*n)/n}function El(e){const t=y.useRef(e);return ki(()=>{t.current=e}),t}function vS(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,h]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,f]=y.useState(r);ta(m,r)||f(r);const[b,p]=y.useState(null),[w,v]=y.useState(null),g=y.useCallback(P=>{P!==C.current&&(C.current=P,p(P))},[]),x=y.useCallback(P=>{P!==k.current&&(k.current=P,v(P))},[]),S=s||b,E=i||w,C=y.useRef(null),k=y.useRef(null),j=y.useRef(d),A=l!=null,M=El(l),z=El(o),I=El(u),Q=y.useCallback(()=>{if(!C.current||!k.current)return;const P={placement:t,strategy:n,middleware:m};z.current&&(P.platform=z.current),pS(C.current,k.current,P).then(T=>{const D={...T,isPositioned:I.current!==!1};L.current&&!ta(j.current,D)&&(j.current=D,Rs.flushSync(()=>{h(D)}))})},[m,t,n,z,I]);ki(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[u]);const L=y.useRef(!1);ki(()=>(L.current=!0,()=>{L.current=!1}),[]),ki(()=>{if(S&&(C.current=S),E&&(k.current=E),S&&E){if(M.current)return M.current(S,E,Q);Q()}},[S,E,Q,M,A]);const K=y.useMemo(()=>({reference:C,floating:k,setReference:g,setFloating:x}),[g,x]),$=y.useMemo(()=>({reference:S,floating:E}),[S,E]),U=y.useMemo(()=>{const P={position:n,left:0,top:0};if(!$.floating)return P;const T=Hf($.floating,d.x),D=Hf($.floating,d.y);return a?{...P,transform:"translate("+T+"px, "+D+"px)",...Wg($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:D}},[n,a,$.floating,d.x,d.y]);return y.useMemo(()=>({...d,update:Q,refs:K,elements:$,floatingStyles:U}),[d,Q,K,$,U])}const yS=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Uf({element:r.current,padding:o}).fn(n):{}:r?Uf({element:r,padding:o}).fn(n):{}}}},xS=(e,t)=>({...lS(e),options:[e,t]}),wS=(e,t)=>({...uS(e),options:[e,t]}),bS=(e,t)=>({...hS(e),options:[e,t]}),SS=(e,t)=>({...cS(e),options:[e,t]}),ES=(e,t)=>({...dS(e),options:[e,t]}),CS=(e,t)=>({...fS(e),options:[e,t]}),kS=(e,t)=>({...yS(e),options:[e,t]});var NS="Arrow",Bg=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(ye.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Bg.displayName=NS;var PS=Bg;function TS(e){const[t,n]=y.useState(void 0);return rn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ug="Popper",[Hg,Vg]=Os(Ug),[uP,Qg]=Hg(Ug),Yg="PopperAnchor",Gg=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Qg(Yg,n),i=y.useRef(null),a=$e(t,i);return y.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:c.jsx(ye.div,{...o,ref:a})});Gg.displayName=Yg;var qc="PopperContent",[jS,RS]=Hg(qc),Kg=y.forwardRef((e,t)=>{var Z,Sr,ln,Yn,un,Er;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:f="optimized",onPlaced:b,...p}=e,w=Qg(qc,n),[v,g]=y.useState(null),x=$e(t,cn=>g(cn)),[S,E]=y.useState(null),C=TS(S),k=(C==null?void 0:C.width)??0,j=(C==null?void 0:C.height)??0,A=r+(s!=="center"?"-"+s:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(u)?u:[u],I=z.length>0,Q={padding:M,boundary:z.filter(MS),altBoundary:I},{refs:L,floatingStyles:K,placement:$,isPositioned:U,middlewareData:P}=vS({strategy:"fixed",placement:A,whileElementsMounted:(...cn)=>aS(...cn,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[xS({mainAxis:o+j,alignmentAxis:i}),l&&wS({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?bS():void 0,...Q}),l&&SS({...Q}),ES({...Q,apply:({elements:cn,rects:Ds,availableWidth:za,availableHeight:_s})=>{const{width:$a,height:No}=Ds.reference,Cr=cn.floating.style;Cr.setProperty("--radix-popper-available-width",`${za}px`),Cr.setProperty("--radix-popper-available-height",`${_s}px`),Cr.setProperty("--radix-popper-anchor-width",`${$a}px`),Cr.setProperty("--radix-popper-anchor-height",`${No}px`)}}),S&&kS({element:S,padding:a}),AS({arrowWidth:k,arrowHeight:j}),m&&CS({strategy:"referenceHidden",...Q})]}),[T,D]=Jg($),H=Bt(b);rn(()=>{U&&(H==null||H())},[U,H]);const F=(Z=P.arrow)==null?void 0:Z.x,Y=(Sr=P.arrow)==null?void 0:Sr.y,q=((ln=P.arrow)==null?void 0:ln.centerOffset)!==0,[ge,Te]=y.useState();return rn(()=>{v&&Te(window.getComputedStyle(v).zIndex)},[v]),c.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:U?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Yn=P.transformOrigin)==null?void 0:Yn.x,(un=P.transformOrigin)==null?void 0:un.y].join(" "),...((Er=P.hide)==null?void 0:Er.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(jS,{scope:n,placedSide:T,onArrowChange:E,arrowX:F,arrowY:Y,shouldHideArrow:q,children:c.jsx(ye.div,{"data-side":T,"data-align":D,...p,ref:x,style:{...p.style,animation:U?void 0:"none"}})})})});Kg.displayName=qc;var qg="PopperArrow",OS={top:"bottom",right:"left",bottom:"top",left:"right"},Xg=y.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=RS(qg,r),i=OS[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(PS,{...o,ref:n,style:{...o.style,display:"block"}})})});Xg.displayName=qg;function MS(e){return e!==null}var AS=e=>({name:"transformOrigin",options:e,fn(t){var w,v,g;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=Jg(n),h={start:"0%",center:"50%",end:"100%"}[d],m=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,f=(((g=o.arrow)==null?void 0:g.y)??0)+l/2;let b="",p="";return u==="bottom"?(b=i?h:`${m}px`,p=`${-l}px`):u==="top"?(b=i?h:`${m}px`,p=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,p=i?h:`${f}px`):u==="left"&&(b=`${r.floating.width+l}px`,p=i?h:`${f}px`),{data:{x:b,y:p}}}});function Jg(e){const[t,n="center"]=e.split("-");return[t,n]}var LS=Gg,DS=Kg,_S=Xg,[ja,cP]=Os("Tooltip",[Vg]),Xc=Vg(),Zg="TooltipProvider",IS=700,Vf="tooltip.open",[FS,ev]=ja(Zg),tv=e=>{const{__scopeTooltip:t,delayDuration:n=IS,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=y.useRef(!0),a=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(FS,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:y.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};tv.displayName=Zg;var nv="Tooltip",[dP,Ra]=ja(nv),Du="TooltipTrigger",zS=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ra(Du,n),s=ev(Du,n),i=Xc(n),a=y.useRef(null),l=$e(t,a,o.onTriggerChange),u=y.useRef(!1),d=y.useRef(!1),h=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(LS,{asChild:!0,...i,children:c.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ue(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:ue(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:ue(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ue(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ue(e.onBlur,o.onClose),onClick:ue(e.onClick,o.onClose)})})});zS.displayName=Du;var $S="TooltipPortal",[fP,WS]=ja($S,{forceMount:void 0}),yo="TooltipContent",rv=y.forwardRef((e,t)=>{const n=WS(yo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Ra(yo,e.__scopeTooltip);return c.jsx(So,{present:r||i.open,children:i.disableHoverableContent?c.jsx(ov,{side:o,...s,ref:t}):c.jsx(BS,{side:o,...s,ref:t})})}),BS=y.forwardRef((e,t)=>{const n=Ra(yo,e.__scopeTooltip),r=ev(yo,e.__scopeTooltip),o=y.useRef(null),s=$e(t,o),[i,a]=y.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:h}=r,m=y.useCallback(()=>{a(null),h(!1)},[h]),f=y.useCallback((b,p)=>{const w=b.currentTarget,v={x:b.clientX,y:b.clientY},g=YS(v,w.getBoundingClientRect()),x=GS(v,g),S=KS(p.getBoundingClientRect()),E=XS([...x,...S]);a(E),h(!0)},[h]);return y.useEffect(()=>()=>m(),[m]),y.useEffect(()=>{if(l&&d){const b=w=>f(w,d),p=w=>f(w,l);return l.addEventListener("pointerleave",b),d.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",b),d.removeEventListener("pointerleave",p)}}},[l,d,f,m]),y.useEffect(()=>{if(i){const b=p=>{const w=p.target,v={x:p.clientX,y:p.clientY},g=(l==null?void 0:l.contains(w))||(d==null?void 0:d.contains(w)),x=!qS(v,i);g?m():x&&(m(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,d,i,u,m]),c.jsx(ov,{...e,ref:s})}),[US,HS]=ja(nv,{isInside:!1}),VS=ow("TooltipContent"),ov=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Ra(yo,n),u=Xc(n),{onClose:d}=l;return y.useEffect(()=>(document.addEventListener(Vf,d),()=>document.removeEventListener(Vf,d)),[d]),y.useEffect(()=>{if(l.trigger){const h=m=>{const f=m.target;f!=null&&f.contains(l.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,d]),c.jsx(Ea,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:c.jsxs(DS,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(VS,{children:r}),c.jsx(US,{scope:n,isInside:!0,children:c.jsx(Tw,{id:l.contentId,role:"tooltip",children:o||r})})]})})});rv.displayName=yo;var sv="TooltipArrow",QS=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Xc(n);return HS(sv,n).isInside?null:c.jsx(_S,{...o,...r,ref:t})});QS.displayName=sv;function YS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function GS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function KS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function qS(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;sr!=m>r&&n<(h-u)*(r-d)/(m-d)+u&&(o=!o)}return o}function XS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),JS(t)}function JS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ZS=tv,iv=rv;const eE=ZS,tE=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(iv,{ref:r,sideOffset:t,className:Se("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));tE.displayName=iv.displayName;var Oa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ma=typeof window>"u"||"Deno"in globalThis;function xt(){}function nE(e,t){return typeof e=="function"?e(t):e}function rE(e){return typeof e=="number"&&e>=0&&e!==1/0}function oE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _u(e,t){return typeof e=="function"?e(t):e}function sE(e,t){return typeof e=="function"?e(t):e}function Qf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Jc(i,t.options))return!1}else if(!bs(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Yf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ws(t.options.mutationKey)!==ws(s))return!1}else if(!bs(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Jc(e,t){return((t==null?void 0:t.queryKeyHashFn)||ws)(e)}function ws(e){return JSON.stringify(e,(t,n)=>Iu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function bs(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>bs(e[n],t[n])):!1}function av(e,t){if(e===t)return e;const n=Gf(e)&&Gf(t);if(n||Iu(e)&&Iu(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let d=0;d{setTimeout(t,e)})}function aE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?av(e,t):t}function lE(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uE(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Zc=Symbol();function lv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Zc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var nr,Cn,to,Sh,cE=(Sh=class extends Oa{constructor(){super();J(this,nr);J(this,Cn);J(this,to);B(this,to,t=>{if(!Ma&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){N(this,Cn)||this.setEventListener(N(this,to))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,Cn))==null||t.call(this),B(this,Cn,void 0))}setEventListener(t){var n;B(this,to,t),(n=N(this,Cn))==null||n.call(this),B(this,Cn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){N(this,nr)!==t&&(B(this,nr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof N(this,nr)=="boolean"?N(this,nr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},nr=new WeakMap,Cn=new WeakMap,to=new WeakMap,Sh),uv=new cE,no,kn,ro,Eh,dE=(Eh=class extends Oa{constructor(){super();J(this,no,!0);J(this,kn);J(this,ro);B(this,ro,t=>{if(!Ma&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,kn)||this.setEventListener(N(this,ro))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,kn))==null||t.call(this),B(this,kn,void 0))}setEventListener(t){var n;B(this,ro,t),(n=N(this,kn))==null||n.call(this),B(this,kn,t(this.setOnline.bind(this)))}setOnline(t){N(this,no)!==t&&(B(this,no,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return N(this,no)}},no=new WeakMap,kn=new WeakMap,ro=new WeakMap,Eh),na=new dE;function fE(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function hE(e){return Math.min(1e3*2**e,3e4)}function cv(e){return(e??"online")==="online"?na.isOnline():!0}var dv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Cl(e){return e instanceof dv}function fv(e){let t=!1,n=0,r=!1,o;const s=fE(),i=p=>{var w;r||(m(new dv(p)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>uv.isFocused()&&(e.networkMode==="always"||na.isOnline())&&e.canRun(),d=()=>cv(e.networkMode)&&e.canRun(),h=p=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,p),o==null||o(),s.resolve(p))},m=p=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,p),o==null||o(),s.reject(p))},f=()=>new Promise(p=>{var w;o=v=>{(r||u())&&p(v)},(w=e.onPause)==null||w.call(e)}).then(()=>{var p;o=void 0,r||(p=e.onContinue)==null||p.call(e)}),b=()=>{if(r)return;let p;const w=n===0?e.initialPromise:void 0;try{p=w??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(h).catch(v=>{var C;if(r)return;const g=e.retry??(Ma?0:3),x=e.retryDelay??hE,S=typeof x=="function"?x(n,v):x,E=g===!0||typeof g=="number"&&nu()?void 0:f()).then(()=>{t?m(v):b()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?b():f().then(b),s)}}var pE=e=>setTimeout(e,0);function mE(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=pE;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Fe=mE(),rr,Ch,hv=(Ch=class{constructor(){J(this,rr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),rE(this.gcTime)&&B(this,rr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ma?1/0:5*60*1e3))}clearGcTimeout(){N(this,rr)&&(clearTimeout(N(this,rr)),B(this,rr,void 0))}},rr=new WeakMap,Ch),oo,or,it,sr,Ae,Es,ir,wt,Qt,kh,gE=(kh=class extends hv{constructor(t){super();J(this,wt);J(this,oo);J(this,or);J(this,it);J(this,sr);J(this,Ae);J(this,Es);J(this,ir);B(this,ir,!1),B(this,Es,t.defaultOptions),this.setOptions(t.options),this.observers=[],B(this,sr,t.client),B(this,it,N(this,sr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,B(this,oo,yE(this.options)),this.state=t.state??N(this,oo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=N(this,Ae))==null?void 0:t.promise}setOptions(t){this.options={...N(this,Es),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,it).remove(this)}setData(t,n){const r=aE(this.state.data,t,this.options);return je(this,wt,Qt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){je(this,wt,Qt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=N(this,Ae))==null?void 0:r.promise;return(o=N(this,Ae))==null||o.cancel(t),n?n.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,oo))}isActive(){return this.observers.some(t=>sE(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Zc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>_u(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!oE(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=N(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,it).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(N(this,Ae)&&(N(this,ir)?N(this,Ae).cancel({revert:!0}):N(this,Ae).cancelRetry()),this.scheduleGc()),N(this,it).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,wt,Qt).call(this,{type:"invalidate"})}fetch(t,n){var u,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(N(this,Ae))return N(this,Ae).continueRetry(),N(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(B(this,ir,!0),r.signal)})},s=()=>{const m=lv(this.options,n),b=(()=>{const p={client:N(this,sr),queryKey:this.queryKey,meta:this.meta};return o(p),p})();return B(this,ir,!1),this.options.persister?this.options.persister(m,b,this):m(b)},a=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:N(this,sr),state:this.state,fetchFn:s};return o(m),m})();(u=this.options.behavior)==null||u.onFetch(a,this),B(this,or,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&je(this,wt,Qt).call(this,{type:"fetch",meta:(h=a.fetchOptions)==null?void 0:h.meta});const l=m=>{var f,b,p,w;Cl(m)&&m.silent||je(this,wt,Qt).call(this,{type:"error",error:m}),Cl(m)||((b=(f=N(this,it).config).onError)==null||b.call(f,m,this),(w=(p=N(this,it).config).onSettled)==null||w.call(p,this.state.data,m,this)),this.scheduleGc()};return B(this,Ae,fv({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var f,b,p,w;if(m===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){l(v);return}(b=(f=N(this,it).config).onSuccess)==null||b.call(f,m,this),(w=(p=N(this,it).config).onSettled)==null||w.call(p,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,f)=>{je(this,wt,Qt).call(this,{type:"failed",failureCount:m,error:f})},onPause:()=>{je(this,wt,Qt).call(this,{type:"pause"})},onContinue:()=>{je(this,wt,Qt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),N(this,Ae).start()}},oo=new WeakMap,or=new WeakMap,it=new WeakMap,sr=new WeakMap,Ae=new WeakMap,Es=new WeakMap,ir=new WeakMap,wt=new WeakSet,Qt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...vE(r.data,this.options),fetchMeta:t.meta??null};case"success":return B(this,or,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Cl(o)&&o.revert&&N(this,or)?{...N(this,or),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,it).notify({query:this,type:"updated",action:t})})},kh);function vE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var At,Nh,xE=(Nh=class extends Oa{constructor(t={}){super();J(this,At);this.config=t,B(this,At,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Jc(o,n);let i=this.get(s);return i||(i=new gE({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){N(this,At).has(t.queryHash)||(N(this,At).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=N(this,At).get(t.queryHash);n&&(t.destroy(),n===t&&N(this,At).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,At).get(t)}getAll(){return[...N(this,At).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qf(t,r)):n}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},At=new WeakMap,Nh),Lt,_e,ar,Dt,yn,Ph,wE=(Ph=class extends hv{constructor(t){super();J(this,Dt);J(this,Lt);J(this,_e);J(this,ar);this.mutationId=t.mutationId,B(this,_e,t.mutationCache),B(this,Lt,[]),this.state=t.state||bE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Lt).includes(t)||(N(this,Lt).push(t),this.clearGcTimeout(),N(this,_e).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){B(this,Lt,N(this,Lt).filter(n=>n!==t)),this.scheduleGc(),N(this,_e).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Lt).length||(this.state.status==="pending"?this.scheduleGc():N(this,_e).remove(this))}continue(){var t;return((t=N(this,ar))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,d,h,m,f,b,p,w,v,g,x,S,E,C,k,j;const n=()=>{je(this,Dt,yn).call(this,{type:"continue"})};B(this,ar,fv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,M)=>{je(this,Dt,yn).call(this,{type:"failed",failureCount:A,error:M})},onPause:()=>{je(this,Dt,yn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,_e).canRun(this)}));const r=this.state.status==="pending",o=!N(this,ar).canStart();try{if(r)n();else{je(this,Dt,yn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=N(this,_e).config).onMutate)==null?void 0:i.call(s,t,this));const M=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));M!==this.state.context&&je(this,Dt,yn).call(this,{type:"pending",context:M,variables:t,isPaused:o})}const A=await N(this,ar).start();return await((d=(u=N(this,_e).config).onSuccess)==null?void 0:d.call(u,A,t,this.state.context,this)),await((m=(h=this.options).onSuccess)==null?void 0:m.call(h,A,t,this.state.context)),await((b=(f=N(this,_e).config).onSettled)==null?void 0:b.call(f,A,null,this.state.variables,this.state.context,this)),await((w=(p=this.options).onSettled)==null?void 0:w.call(p,A,null,t,this.state.context)),je(this,Dt,yn).call(this,{type:"success",data:A}),A}catch(A){try{throw await((g=(v=N(this,_e).config).onError)==null?void 0:g.call(v,A,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,A,t,this.state.context)),await((C=(E=N(this,_e).config).onSettled)==null?void 0:C.call(E,void 0,A,this.state.variables,this.state.context,this)),await((j=(k=this.options).onSettled)==null?void 0:j.call(k,void 0,A,t,this.state.context)),A}finally{je(this,Dt,yn).call(this,{type:"error",error:A})}}finally{N(this,_e).runNext(this)}}},Lt=new WeakMap,_e=new WeakMap,ar=new WeakMap,Dt=new WeakSet,yn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Fe.batch(()=>{N(this,Lt).forEach(r=>{r.onMutationUpdate(t)}),N(this,_e).notify({mutation:this,type:"updated",action:t})})},Ph);function bE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kt,bt,Cs,Th,SE=(Th=class extends Oa{constructor(t={}){super();J(this,Kt);J(this,bt);J(this,Cs);this.config=t,B(this,Kt,new Set),B(this,bt,new Map),B(this,Cs,0)}build(t,n,r){const o=new wE({mutationCache:this,mutationId:++Fs(this,Cs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){N(this,Kt).add(t);const n=ii(t);if(typeof n=="string"){const r=N(this,bt).get(n);r?r.push(t):N(this,bt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(N(this,Kt).delete(t)){const n=ii(t);if(typeof n=="string"){const r=N(this,bt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&N(this,bt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ii(t);if(typeof n=="string"){const r=N(this,bt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ii(t);if(typeof n=="string"){const o=(r=N(this,bt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Fe.batch(()=>{N(this,Kt).forEach(t=>{this.notify({type:"removed",mutation:t})}),N(this,Kt).clear(),N(this,bt).clear()})}getAll(){return Array.from(N(this,Kt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Yf(n,r))}findAll(t={}){return this.getAll().filter(n=>Yf(t,n))}notify(t){Fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(xt))))}},Kt=new WeakMap,bt=new WeakMap,Cs=new WeakMap,Th);function ii(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qf(e){return{onFetch:(t,n)=>{var d,h,m,f,b;const r=t.options,o=(m=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,s=((f=t.state.data)==null?void 0:f.pages)||[],i=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let p=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=lv(t.options,t.fetchOptions),g=async(x,S,E)=>{if(p)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const k=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return w(z),z})(),j=await v(k),{maxPages:A}=t.options,M=E?uE:lE;return{pages:M(x.pages,j,A),pageParams:M(x.pageParams,S,A)}};if(o&&s.length){const x=o==="backward",S=x?EE:Xf,E={pages:s,pageParams:i},C=S(r,E);a=await g(E,C,x)}else{const x=e??s.length;do{const S=l===0?i[0]??r.initialPageParam:Xf(r,a);if(l>0&&S==null)break;a=await g(a,S),l++}while(l{var p,w;return(w=(p=t.options).persister)==null?void 0:w.call(p,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Xf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function EE(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var he,Nn,Pn,so,io,Tn,ao,lo,jh,CE=(jh=class{constructor(e={}){J(this,he);J(this,Nn);J(this,Pn);J(this,so);J(this,io);J(this,Tn);J(this,ao);J(this,lo);B(this,he,e.queryCache||new xE),B(this,Nn,e.mutationCache||new SE),B(this,Pn,e.defaultOptions||{}),B(this,so,new Map),B(this,io,new Map),B(this,Tn,0)}mount(){Fs(this,Tn)._++,N(this,Tn)===1&&(B(this,ao,uv.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,he).onFocus())})),B(this,lo,na.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,he).onOnline())})))}unmount(){var e,t;Fs(this,Tn)._--,N(this,Tn)===0&&((e=N(this,ao))==null||e.call(this),B(this,ao,void 0),(t=N(this,lo))==null||t.call(this),B(this,lo,void 0))}isFetching(e){return N(this,he).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,Nn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,he).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=N(this,he).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(_u(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return N(this,he).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=N(this,he).get(r.queryHash),s=o==null?void 0:o.state.data,i=nE(t,s);if(i!==void 0)return N(this,he).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Fe.batch(()=>N(this,he).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=N(this,he).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=N(this,he);Fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=N(this,he);return Fe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Fe.batch(()=>N(this,he).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(xt).catch(xt)}invalidateQueries(e,t={}){return Fe.batch(()=>(N(this,he).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Fe.batch(()=>N(this,he).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(xt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(xt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=N(this,he).build(this,t);return n.isStaleByTime(_u(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xt).catch(xt)}fetchInfiniteQuery(e){return e.behavior=qf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xt).catch(xt)}ensureInfiniteQueryData(e){return e.behavior=qf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return na.isOnline()?N(this,Nn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,he)}getMutationCache(){return N(this,Nn)}getDefaultOptions(){return N(this,Pn)}setDefaultOptions(e){B(this,Pn,e)}setQueryDefaults(e,t){N(this,so).set(ws(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,so).values()],n={};return t.forEach(r=>{bs(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){N(this,io).set(ws(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,io).values()],n={};return t.forEach(r=>{bs(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,Pn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Jc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Zc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,Pn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,he).clear(),N(this,Nn).clear()}},he=new WeakMap,Nn=new WeakMap,Pn=new WeakMap,so=new WeakMap,io=new WeakMap,Tn=new WeakMap,ao=new WeakMap,lo=new WeakMap,jh),kE=y.createContext(void 0),NE=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(kE.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function pv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function TE(){return Math.random().toString(36).substr(2,8)}function Zf(e,t){return{usr:e.state,key:e.key,idx:t}}function Fu(e,t,n,r){return n===void 0&&(n=null),ra({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Aa(t):t,{state:n,key:t&&t.key||r||TE()})}function mv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Aa(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=On.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(ra({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function h(){a=On.Pop;let w=d(),v=w==null?null:w-u;u=w,l&&l({action:a,location:p.location,delta:v})}function m(w,v){a=On.Push;let g=Fu(p.location,w,v);u=d()+1;let x=Zf(g,u),S=p.createHref(g);try{i.pushState(x,"",S)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(S)}s&&l&&l({action:a,location:p.location,delta:1})}function f(w,v){a=On.Replace;let g=Fu(p.location,w,v);u=d();let x=Zf(g,u),S=p.createHref(g);i.replaceState(x,"",S),s&&l&&l({action:a,location:p.location,delta:0})}function b(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof w=="string"?w:mv(w);return g=g.replace(/ $/,"%20"),qe(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let p={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Jf,h),l=w,()=>{o.removeEventListener(Jf,h),l=null}},createHref(w){return t(o,w)},createURL:b,encodeLocation(w){let v=b(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:f,go(w){return i.go(w)}};return p}var eh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(eh||(eh={}));function RE(e,t,n){return n===void 0&&(n="/"),OE(e,t,n,!1)}function OE(e,t,n,r){let o=typeof t=="string"?Aa(t):t,s=yv(o.pathname||"/",n);if(s==null)return null;let i=gv(e);ME(i);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(qe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zr([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(qe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),gv(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:zE(u,s.index),routesMeta:d})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of vv(s.path))o(s,i,l)}),t}function vv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=vv(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function ME(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$E(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const AE=/^:[\w-]+$/,LE=3,DE=2,_E=1,IE=10,FE=-2,th=e=>e==="*";function zE(e,t){let n=e.split("/"),r=n.length;return n.some(th)&&(r+=FE),t&&(r+=DE),n.filter(o=>!th(o)).reduce((o,s)=>o+(AE.test(s)?LE:s===""?_E:IE),r)}function $E(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function WE(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a{let{paramName:m,isOptional:f}=d;if(m==="*"){let p=a[h]||"";i=s.slice(0,s.length-p.length).replace(/(.)\/+$/,"$1")}const b=a[h];return f&&!b?u[m]=void 0:u[m]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function BE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function UE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Zr=e=>e.join("/").replace(/\/\/+/g,"/"),HE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function VE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xv=["post","put","patch","delete"];new Set(xv);const QE=["get",...xv];new Set(QE);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},a,w.params),pathname:Zr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Zr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&p?y.createElement(La.Provider,{value:{location:oa({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:On.Pop}},p):p}function XE(){let e=sC(),t=VE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const JE=y.createElement(XE,null);class ZE extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Da.Provider,{value:this.props.routeContext},y.createElement(bv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function eC(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(YE);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Da.Provider,{value:t},r)}function tC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=i.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);d>=0||qe(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,h,m)=>{let f,b=!1,p=null,w=null;n&&(f=a&&h.route.id?a[h.route.id]:void 0,p=h.route.errorElement||JE,l&&(u<0&&m===0?(b=!0,w=null):u===m&&(b=!0,w=h.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,m+1)),g=()=>{let x;return f?x=p:b?x=w:h.route.Component?x=y.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=d,y.createElement(eC,{match:h,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?y.createElement(ZE,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var zu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(zu||{});function nC(e){let t=y.useContext(GE);return t||qe(!1),t}function rC(e){let t=y.useContext(Da);return t||qe(!1),t}function oC(e){let t=rC(),n=t.matches[t.matches.length-1];return n.route.id||qe(!1),n.route.id}function sC(){var e;let t=y.useContext(bv),n=nC(zu.UseRouteError),r=oC(zu.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function iC(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function $u(e){qe(!1)}function aC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=On.Pop,navigator:s,static:i=!1,future:a}=e;ed()&&qe(!1);let l=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:l,navigator:s,static:i,future:oa({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=Aa(r));let{pathname:d="/",search:h="",hash:m="",state:f=null,key:b="default"}=r,p=y.useMemo(()=>{let w=yv(d,l);return w==null?null:{location:{pathname:w,search:h,hash:m,state:f,key:b},navigationType:o}},[l,d,h,m,f,b,o]);return p==null?null:y.createElement(wv.Provider,{value:u},y.createElement(La.Provider,{children:n,value:p}))}function lC(e){let{children:t,location:n}=e;return KE(Wu(t),n)}new Promise(()=>{});function Wu(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,o)=>{if(!y.isValidElement(r))return;let s=[...t,o];if(r.type===y.Fragment){n.push.apply(n,Wu(r.props.children,s));return}r.type!==$u&&qe(!1),!r.props.index||!r.props.children||qe(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Wu(r.props.children,s)),n.push(i)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */const uC="6";try{window.__reactRouterVersion=uC}catch{}const cC="startTransition",rh=Yu[cC];function dC(e){let{basename:t,children:n,future:r,window:o}=e,s=y.useRef();s.current==null&&(s.current=PE({window:o,v5Compat:!0}));let i=s.current,[a,l]=y.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=y.useCallback(h=>{u&&rh?rh(()=>l(h)):l(h)},[l,u]);return y.useLayoutEffect(()=>i.listen(d),[i,d]),y.useEffect(()=>iC(r),[r]),y.createElement(aC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}var oh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oh||(oh={}));var sh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sh||(sh={}));const fC=()=>{const[e,t]=y.useState(0);y.useEffect(()=>{const o=()=>{const s=window.scrollY,i=document.documentElement.scrollHeight-document.documentElement.clientHeight,a=s/i*100;t(a)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]);const n=2*Math.PI*18,r=n-e/100*n;return c.jsxs("header",{className:"sticky top-0 z-50 bg-primary shadow-sm",children:[c.jsx("div",{className:"container mx-auto px-4 py-4",children:c.jsxs("div",{className:"flex items-center justify-center gap-3 relative",children:[c.jsx("h1",{className:"text-xl md:text-2xl font-bold text-primary-foreground text-center pr-14 lg:pr-0",children:"Top 5 Weight Loss Supplement"}),c.jsxs("div",{className:"lg:hidden absolute right-0 w-10 h-10 flex-shrink-0",children:[c.jsxs("svg",{className:"transform -rotate-90 w-10 h-10",children:[c.jsx("circle",{cx:"20",cy:"20",r:"18",stroke:"currentColor",strokeWidth:"3",fill:"none",className:"text-primary-foreground/20"}),c.jsx("circle",{cx:"20",cy:"20",r:"18",stroke:"currentColor",strokeWidth:"3",fill:"none",strokeDasharray:n,strokeDashoffset:r,className:"text-primary-foreground transition-all duration-300 ease-out",strokeLinecap:"round"})]}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:c.jsxs("span",{className:"text-[10px] font-bold text-primary-foreground",children:[Math.round(e),"%"]})})]})]})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-primary-foreground/20",children:c.jsx("div",{className:"h-full bg-primary-foreground transition-all duration-300 ease-out",style:{width:`${e}%`}})})]})},hC="/assets/Alpha-Grow-boostaro-Cl9rSRuF.png";function jt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function gr(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Ev=6048e5,pC=864e5;let mC={};function _a(){return mC}function Ss(e,t){var a,l,u,d;const n=_a(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=jt(e),s=o.getDay(),i=(s=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function ih(e){const t=jt(e);return t.setHours(0,0,0,0),t}function ah(e){const t=jt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function gC(e,t){const n=ih(e),r=ih(t),o=+n-ah(n),s=+r-ah(r);return Math.round((o-s)/pC)}function vC(e){const t=Cv(e),n=gr(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),sa(n)}function yC(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xC(e){if(!yC(e)&&typeof e!="number")return!1;const t=jt(e);return!isNaN(Number(t))}function wC(e){const t=jt(e),n=gr(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const bC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},SC=(e,t,n)=>{let r;const o=bC[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function kl(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const EC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},CC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NC={date:kl({formats:EC,defaultWidth:"full"}),time:kl({formats:CC,defaultWidth:"full"}),dateTime:kl({formats:kC,defaultWidth:"full"})},PC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TC=(e,t,n,r)=>PC[e];function Fo(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{const i=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const jC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},RC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},OC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},MC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},AC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},LC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},DC=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_C={ordinalNumber:DC,era:Fo({values:jC,defaultWidth:"wide"}),quarter:Fo({values:RC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Fo({values:OC,defaultWidth:"wide"}),day:Fo({values:MC,defaultWidth:"wide"}),dayPeriod:Fo({values:AC,defaultWidth:"wide",formattingValues:LC,defaultFormattingWidth:"wide"})};function zo(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const i=s[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?FC(a,h=>h.test(i)):IC(a,h=>h.test(i));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(i.length);return{value:u,rest:d}}}function IC(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function FC(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const a=t.slice(o.length);return{value:i,rest:a}}}const $C=/^(\d+)(th|st|nd|rd)?/i,WC=/\d+/i,BC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},UC={any:[/^b/i,/^(a|c)/i]},HC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},VC={any:[/1/i,/2/i,/3/i,/4/i]},QC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},YC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},GC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},KC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},XC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},JC={ordinalNumber:zC({matchPattern:$C,parsePattern:WC,valueCallback:e=>parseInt(e,10)}),era:zo({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:UC,defaultParseWidth:"any"}),quarter:zo({matchPatterns:HC,defaultMatchWidth:"wide",parsePatterns:VC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zo({matchPatterns:QC,defaultMatchWidth:"wide",parsePatterns:YC,defaultParseWidth:"any"}),day:zo({matchPatterns:GC,defaultMatchWidth:"wide",parsePatterns:KC,defaultParseWidth:"any"}),dayPeriod:zo({matchPatterns:qC,defaultMatchWidth:"any",parsePatterns:XC,defaultParseWidth:"any"})},ZC={code:"en-US",formatDistance:SC,formatLong:NC,formatRelative:TC,localize:_C,match:JC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ek(e){const t=jt(e);return gC(t,wC(t))+1}function tk(e){const t=jt(e),n=+sa(t)-+vC(t);return Math.round(n/Ev)+1}function kv(e,t){var d,h,m,f;const n=jt(e),r=n.getFullYear(),o=_a(),s=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((f=(m=o.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,i=gr(e,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const a=Ss(i,t),l=gr(e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Ss(l,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function nk(e,t){var a,l,u,d;const n=_a(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=kv(e,t),s=gr(e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Ss(s,t)}function rk(e,t){const n=jt(e),r=+Ss(n,t)-+nk(n,t);return Math.round(r/Ev)+1}function ee(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const vn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ee(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ee(n+1,2)},d(e,t){return ee(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ee(e.getHours()%12||12,t.length)},H(e,t){return ee(e.getHours(),t.length)},m(e,t){return ee(e.getMinutes(),t.length)},s(e,t){return ee(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ee(o,t.length)}},jr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lh={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return vn.y(e,t)},Y:function(e,t,n,r){const o=kv(e,r),s=o>0?o:1-o;if(t==="YY"){const i=s%100;return ee(i,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):ee(s,t.length)},R:function(e,t){const n=Cv(e);return ee(n,t.length)},u:function(e,t){const n=e.getFullYear();return ee(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ee(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ee(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return vn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ee(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=rk(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ee(o,t.length)},I:function(e,t,n){const r=tk(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ee(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):vn.d(e,t)},D:function(e,t,n){const r=ek(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ee(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ee(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ee(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return ee(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=jr.noon:r===0?o=jr.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=jr.evening:r>=12?o=jr.afternoon:r>=4?o=jr.morning:o=jr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return vn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):vn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ee(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ee(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):vn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):vn.s(e,t)},S:function(e,t){return vn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ch(r);case"XXXX":case"XX":return Jn(r);case"XXXXX":case"XXX":default:return Jn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ch(r);case"xxxx":case"xx":return Jn(r);case"xxxxx":case"xxx":default:return Jn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uh(r,":");case"OOOO":default:return"GMT"+Jn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uh(r,":");case"zzzz":default:return"GMT"+Jn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return ee(r,t.length)},T:function(e,t,n){const r=e.getTime();return ee(r,t.length)}};function uh(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+ee(s,2)}function ch(e,t){return e%60===0?(e>0?"-":"+")+ee(Math.abs(e)/60,2):Jn(e,t)}function Jn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ee(Math.trunc(r/60),2),s=ee(r%60,2);return n+o+t+s}const dh=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Nv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ok=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return dh(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",dh(r,t)).replace("{{time}}",Nv(o,t))},sk={p:Nv,P:ok},ik=/^D+$/,ak=/^Y+$/,lk=["D","DD","YY","YYYY"];function uk(e){return ik.test(e)}function ck(e){return ak.test(e)}function dk(e,t,n){const r=fk(e,t,n);if(console.warn(r),lk.includes(e))throw new RangeError(r)}function fk(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const hk=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pk=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mk=/^'([^]*?)'?$/,gk=/''/g,vk=/[a-zA-Z]/;function yk(e,t,n){var d,h,m,f;const r=_a(),o=r.locale??ZC,s=r.firstWeekContainsDate??((h=(d=r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=r.weekStartsOn??((f=(m=r.locale)==null?void 0:m.options)==null?void 0:f.weekStartsOn)??0,a=jt(e);if(!xC(a))throw new RangeError("Invalid time value");let l=t.match(pk).map(b=>{const p=b[0];if(p==="p"||p==="P"){const w=sk[p];return w(b,o.formatLong)}return b}).join("").match(hk).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const p=b[0];if(p==="'")return{isToken:!1,value:xk(b)};if(lh[p])return{isToken:!0,value:b};if(p.match(vk))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:b}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const u={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return l.map(b=>{if(!b.isToken)return b.value;const p=b.value;(ck(p)||uk(p))&&dk(p,t,String(e));const w=lh[p[0]];return w(a,p,o.localize,u)}).join("")}function xk(e){const t=e.match(mk);return t?t[1].replace(gk,"'"):e}const wk=()=>{const[e,t]=y.useState(new Date);return y.useEffect(()=>{const n=new Date,r=new Date(n);r.setDate(r.getDate()+1),r.setHours(0,0,0,0);const o=r.getTime()-n.getTime(),s=setTimeout(()=>{t(new Date);const i=setInterval(()=>{t(new Date)},24*60*60*1e3);return()=>clearInterval(i)},o);return()=>clearTimeout(s)},[]),c.jsx("div",{className:"text-center py-4",children:c.jsxs("p",{className:"text-muted-foreground",children:["Last Update: ",c.jsx("span",{className:"font-semibold text-foreground",children:yk(e,"MMMM dd, yyyy")})]})})},td="/assets/foto1-BVJO5Qcu.jpg",nd="/assets/prime-drops-DSrvDupq.png",bk=()=>{const e=t=>{const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth",block:"start"})};return c.jsx("section",{id:"hero-section",className:"py-12 md:py-16 bg-background",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[c.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-6 leading-tight",children:"Top 5 Best Weight-Loss Supplements for 2025: Lose Weight Without Dieting or Exercising"}),c.jsx("p",{className:"text-lg md:text-xl text-muted-foreground mb-8",children:"We identified the key factors that actually matter in an effective weight-loss supplement — and how to avoid the scams."}),c.jsx(wk,{}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8",children:[c.jsx("button",{onClick:()=>e("ingredients-section"),className:"bg-background border border-border rounded-lg p-6 text-center hover:shadow-lg transition-all duration-300 hover:scale-105",children:c.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"What to Look For"})}),c.jsx("button",{onClick:()=>e("reviews-section"),className:"bg-primary text-primary-foreground rounded-lg p-6 text-center hover:shadow-lg transition-all duration-300 hover:scale-105",children:c.jsx("h3",{className:"text-lg font-semibold",children:"Our Top 5"})}),c.jsx("button",{onClick:()=>e("warnings-section"),className:"bg-background border border-border rounded-lg p-6 text-center hover:shadow-lg transition-all duration-300 hover:scale-105",children:c.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"What to Avoid"})})]}),c.jsx("div",{className:"mb-8 rounded-lg overflow-hidden shadow-lg",children:c.jsx("img",{src:hC,alt:"Man with high energy and performance - benefits of testosterone boosters",className:"w-full h-auto object-cover"})}),c.jsxs("div",{className:"prose prose-xl max-w-none",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("p",{className:"text-foreground",children:"In the crowded world of weight-loss products, bold promises are everywhere. Websites promote “miracle fat burners,” “overnight transformations,” and “breakthrough formulas” — all engineered to grab attention."}),c.jsxs("p",{className:"text-foreground mt-4",children:[c.jsx("strong",{children:c.jsx("u",{children:"Lipo Gummy is one of the most talked-about names right now."})}),"It’s promoted as a natural solution designed to support weight loss without dieting and without exercising by improving metabolism, appetite balance, and fat-burning efficiency."]}),c.jsx("p",{className:"text-foreground mt-4",children:"On paper, the formula looks impressive — combining ingredients commonly associated with metabolic support and fat breakdown."}),c.jsx("p",{className:"text-foreground mt-4",children:"But behind the polished branding, there’s a major issue across this industry: Most weight-loss products don’t deliver real-world results."}),c.jsx("p",{className:"text-foreground mt-4",children:"Across forums, social communities, and independent reviews, many users report feeling misled by big promises, only to experience:"}),c.jsx("p",{className:"text-foreground mt-2",children:"— No change on the scale"}),c.jsx("p",{className:"text-foreground mt-2",children:"— No reduction in stubborn fat"}),c.jsx("p",{className:"text-foreground mt-2",children:"— No increase in energy"}),c.jsx("p",{className:"text-foreground mt-2",children:"— No lasting transformation"}),c.jsx("p",{className:"text-foreground mt-4",children:"And while Lipo Gummy does have real users reporting measurable weight loss, the overall market is filled with weak formulas, cheap copycats, and brands that rely heavily on marketing instead of genuine results."}),c.jsx("p",{className:"text-foreground mt-4",children:"That’s why transparency, user feedback, and formula quality matter more than ever."}),c.jsx("p",{className:"text-foreground mt-4",children:"In this review, we break down the top 5 weight-loss supplements that people are actually recommending, based on real experiences — not hype — so you can make a smarter, more confident decision."})]}),c.jsx("div",{className:"mt-8 flex justify-center",children:c.jsx("div",{className:"w-full max-w-sm rounded-lg overflow-hidden shadow-lg",children:c.jsx("img",{src:nd,alt:"Alpha Grow Max supplement",className:"w-full h-auto object-cover",onError:t=>{t.currentTarget.src=td}})})})]})]})})},Sk="/assets/weight-loss-D5RJm5j-.png",Ek=()=>c.jsx("section",{className:"py-12 md:py-16 bg-secondary",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-8",children:"How Can You Tell a Good Weight-Loss Supplement from a Bad One?"}),c.jsx("div",{className:"mb-8 rounded-lg overflow-hidden shadow-lg",children:c.jsx("img",{src:Sk,alt:"Illustrative image related to weight loss supplement",className:"w-full h-auto object-cover"})}),c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-2xl font-semibold text-foreground mb-4",children:"The Facts About Weight Gain: Understanding the Real Challenges"}),c.jsx("p",{className:"text-foreground leading-relaxed",children:"The numbers don’t lie — most people will struggle with weight gain at some point. Aging, slow metabolism, stress, processed foods, and an increasingly sedentary lifestyle are pushing body fat levels higher than ever."}),c.jsx("p",{className:"text-foreground leading-relaxed mt-4",children:"This doesn’t just affect appearance. It impacts confidence, energy, sleep quality, mood, and overall health."}),c.jsx("p",{className:"text-foreground leading-relaxed mt-4",children:"It’s no wonder the demand for weight-loss supplements is exploding. More and more people are realizing it’s time to take control of their bodies, boost their metabolism, and finally break free from the endless cycle of diets that don’t work."})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-2xl font-semibold text-foreground mb-4",children:"Analyzing Weight-Loss Supplements: Separating Quality From Low-Value Products"}),c.jsx("p",{className:"text-foreground leading-relaxed",children:"Not all supplements are worth your time — or your money. The booming weight-loss market has attracted hundreds of companies flooding the shelves with weak, ineffective formulas packed with cheap fillers and zero real proof of results."}),c.jsx("p",{className:"text-foreground leading-relaxed mt-4",children:"That’s exactly why we stepped in. Our team cut through the noise, reviewed the top formulas, and evaluated them for:"}),c.jsxs("ul",{className:"list-disc pl-6 text-foreground leading-relaxed mt-2 space-y-1",children:[c.jsx("li",{children:"Safety"}),c.jsx("li",{children:"Ingredient quality"}),c.jsx("li",{children:"Metabolic support"}),c.jsx("li",{children:"Fat-reduction potential"}),c.jsx("li",{children:"Real feedback from verified users"})]}),c.jsx("p",{className:"text-foreground leading-relaxed mt-4",children:"But here’s the truth most brands don’t want you to know: some products make outrageous promises about “instant weight loss” that simply don’t match reality."}),c.jsx("p",{className:"text-foreground leading-relaxed mt-4",children:"So the real question is: what kind of results can you actually expect from a high-quality weight-loss supplement like Lipo Gummy? Let’s break it down."})]})]})]})}),Ck=[{title:"Lack of Clinical Studies",description:"If a supplement hasn't been tested in placebo-controlled trials, there's no scientific proof it works."},{title:"Filler Ingredients",description:"Many low-quality supplements pad their formulas with cheap fillers instead of active ingredients."},{title:"Missing Key Ingredients",description:"Products that skip one or more of the 5 essential ingredients are unlikely to be effective."},{title:"Unrealistic Claims",description:"Be wary of products promising instant or miraculous results. Real improvements take time."}],kk=()=>c.jsx("section",{id:"warnings-section",className:"py-12 md:py-16 bg-secondary",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[c.jsx("div",{className:"bg-destructive text-destructive-foreground rounded-lg p-6 mb-8 text-center",children:c.jsx("h2",{className:"text-3xl md:text-4xl font-bold",children:"Warning Signs of Potential Scams"})}),c.jsx("div",{className:"space-y-4",children:Ck.map((e,t)=>c.jsxs("div",{className:"flex gap-4 bg-background p-4 rounded-lg shadow-sm",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx("div",{className:"w-8 h-8 rounded-full bg-destructive flex items-center justify-center",children:c.jsx(xe,{className:"w-5 h-5 text-destructive-foreground"})})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:e.title}),c.jsx("p",{className:"text-foreground leading-relaxed",children:e.description})]})]},t))})]})}),Ls="/assets/boostaro-0DwAyxiF.png",Pv="/assets/nugenix-Bu0F-kaH.png",Tv="/assets/nagano-tonic-B5MMX-YI.png",jv="/assets/erecpower-01EzxxAX.png",Ue=[{name:"Leptozan",image:Ls,ionicMagnesium:!0,ionicPotassium:!0,ionicZinc:!0,ionicChromium:!0,ionicSelenium:!0,clinicalTrial:!0,noFillerIngredients:!0,noArtificialAdditives:!0,vegan:!0,nonGMO:!0,glutenFree:!0,gmpCertified:!0,madeInUSA:!0},{name:"Lipo Gummy",image:nd,ionicMagnesium:!0,ionicPotassium:!0,ionicZinc:!0,ionicChromium:!0,ionicSelenium:!1,clinicalTrial:!1,noFillerIngredients:!1,noArtificialAdditives:!0,vegan:!1,nonGMO:!0,glutenFree:!0,gmpCertified:!1,madeInUSA:!0},{name:"Fitspresso",image:Pv,ionicMagnesium:!0,ionicPotassium:!0,ionicZinc:!0,ionicChromium:!0,ionicSelenium:!1,clinicalTrial:!1,noFillerIngredients:!1,noArtificialAdditives:!0,vegan:!1,nonGMO:!1,glutenFree:!0,gmpCertified:!0,madeInUSA:!0},{name:"Nagano Tonic",image:Tv,ionicMagnesium:!0,ionicPotassium:!0,ionicZinc:!1,ionicChromium:!1,ionicSelenium:!1,clinicalTrial:!1,noFillerIngredients:!1,noArtificialAdditives:!1,vegan:!0,nonGMO:!0,glutenFree:!0,gmpCertified:!0,madeInUSA:!1},{name:"LivPure",image:jv,ionicMagnesium:!1,ionicPotassium:!0,ionicZinc:!0,ionicChromium:!1,ionicSelenium:!1,clinicalTrial:!1,noFillerIngredients:!1,noArtificialAdditives:!0,vegan:!0,nonGMO:!0,glutenFree:!1,gmpCertified:!1,madeInUSA:!1}],Nk=()=>c.jsx("section",{id:"comparison-section",className:"py-12 md:py-16 bg-background",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4 text-center",children:"Top 5 Weight Loss Supplement"}),c.jsx("p",{className:"text-lg text-muted-foreground mb-8 text-center max-w-3xl mx-auto",children:"Here is a side-by-side comparison of the top weight loss supplement products available today, which provides a summary of our research and analysis:"}),c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full border-collapse bg-card shadow-lg rounded-lg overflow-hidden",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-muted",children:[c.jsx("th",{className:"p-2 text-left font-semibold text-foreground border-r border-border w-48"}),Ue.map((e,t)=>c.jsx("th",{className:"p-1 text-center font-semibold text-foreground border-r border-border last:border-r-0",children:c.jsxs("div",{className:"flex flex-col items-center gap-1",children:[c.jsx("img",{src:e.image,alt:`${e.name} bottle`,className:"w-20 h-20 object-contain rounded-lg",onError:n=>{n.currentTarget.src=td}}),c.jsx("div",{className:"text-sm font-bold",children:e.name})]})},t))]})}),c.jsxs("tbody",{children:[c.jsx("tr",{className:"bg-success",children:c.jsx("td",{colSpan:6,className:"p-3 font-bold text-white text-base",children:"Key Ingredients"})}),c.jsxs("tr",{className:"border-b border-border",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Ionic Magnesium"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.ionicMagnesium?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Ionic Potassium"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.ionicPotassium?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Ionic Zinc"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.ionicZinc?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Ionic Chromium"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.ionicChromium?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Ionic Selenium"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.ionicSelenium?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsx("tr",{className:"bg-destructive",children:c.jsx("td",{colSpan:6,className:"p-3 font-bold text-white text-base",children:"Proof of Efficacy"})}),c.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Placebo-Controlled Clinical Trial"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.clinicalTrial?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"No Filler Ingredients"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.noFillerIngredients?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsx("tr",{className:"bg-primary",children:c.jsx("td",{colSpan:6,className:"p-3 font-bold text-white text-base",children:"Other Considerations"})}),c.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"No Artificial Additives"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.noArtificialAdditives?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Vegan"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.vegan?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Non-GMO"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.nonGMO?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Gluten-Free"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.glutenFree?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border bg-muted/30",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Made in a GMP-Certified Laboratory"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.gmpCertified?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]}),c.jsxs("tr",{className:"border-b border-border",children:[c.jsx("td",{className:"p-2 font-medium text-foreground border-r border-border text-sm w-48",children:"Made in the USA"}),Ue.map((e,t)=>c.jsx("td",{className:"p-1 text-center border-r border-border last:border-r-0",children:e.madeInUSA?c.jsx(Me,{className:"w-6 h-6 text-success mx-auto"}):c.jsx(xe,{className:"w-6 h-6 text-destructive mx-auto"})},t))]})]})]})})]})}),Pk=xg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),vr=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?nw:"button";return c.jsx(i,{className:Se(Pk({variant:t,size:n,className:e})),ref:s,...o})});vr.displayName="Button";const Tk=({rank:e,name:t,brand:n,image:r,score:o,pros:s,cons:i,bottomLine:a,url:l,showButton:u=!1})=>{const d=()=>{const f=document.getElementById("testimonials-section");f&&f.scrollIntoView({behavior:"smooth",block:"start"})},m=e===1?{bg:"bg-gold",text:"text-gold-foreground",label:"1st Place"}:e===2?{bg:"bg-gray-400",text:"text-white",label:"2nd Place"}:e===3?{bg:"bg-amber-600",text:"text-white",label:"3rd Place"}:null;return c.jsx("div",{className:"bg-card rounded-lg shadow-lg overflow-hidden border border-border",children:c.jsx("div",{className:"p-6 md:p-8",children:c.jsxs("div",{className:"flex flex-col md:flex-row gap-6 mb-6",children:[c.jsxs("div",{className:"md:hidden mb-4",children:[c.jsxs("div",{className:"text-2xl font-bold text-foreground mb-1",children:[e,". ",t]}),c.jsxs("div",{className:"text-lg text-muted-foreground",children:["by ",n]})]}),c.jsxs("div",{className:"flex-shrink-0 flex flex-col items-center gap-4",children:[c.jsxs("div",{className:"relative",children:[m&&c.jsx("div",{className:"absolute -top-3 -right-3 z-10 rotate-12",children:c.jsxs("div",{className:`${m.bg} ${m.text} rounded-lg px-3 py-2 shadow-lg font-bold text-sm flex items-center gap-1 border-2 border-white`,children:[c.jsx(Xw,{className:"w-4 h-4"}),c.jsx("span",{children:m.label})]})}),c.jsx("img",{src:r,alt:`${t} bottle`,className:"w-48 h-48 object-contain rounded-lg",onError:f=>{f.currentTarget.src=td}})]}),c.jsx("div",{className:"bg-primary/10 rounded-lg px-6 py-3",children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-4xl font-bold text-primary",children:o}),c.jsx("div",{className:"text-xs text-muted-foreground",children:"Rating"})]})})]}),c.jsxs("div",{className:"flex-grow",children:[c.jsxs("div",{className:"hidden md:block mb-4",children:[c.jsxs("div",{className:"text-2xl md:text-3xl font-bold text-foreground mb-1",children:[e,". ",t]}),c.jsxs("div",{className:"text-lg text-muted-foreground",children:["by ",n]})]}),c.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-6",children:[c.jsxs("div",{children:[c.jsxs("h4",{className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx("span",{className:"w-6 h-6 rounded-full bg-success flex items-center justify-center",children:c.jsx(Me,{className:"w-4 h-4 text-success-foreground"})}),"Pros"]}),c.jsx("ul",{className:"space-y-2",children:s.map((f,b)=>c.jsxs("li",{className:"flex items-start gap-2 text-foreground",children:[c.jsx(Me,{className:"w-5 h-5 text-success flex-shrink-0 mt-0.5"}),c.jsx("span",{children:f})]},b))})]}),c.jsxs("div",{children:[c.jsxs("h4",{className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx("span",{className:"w-6 h-6 rounded-full bg-destructive flex items-center justify-center",children:c.jsx(xe,{className:"w-4 h-4 text-destructive-foreground"})}),"Cons"]}),c.jsx("ul",{className:"space-y-2",children:i.map((f,b)=>c.jsxs("li",{className:"flex items-start gap-2 text-foreground",children:[c.jsx(xe,{className:"w-5 h-5 text-destructive flex-shrink-0 mt-0.5"}),c.jsx("span",{children:f})]},b))})]})]}),c.jsxs("div",{className:"bg-secondary p-4 rounded-lg mb-6",children:[c.jsx("h4",{className:"font-semibold text-foreground mb-2",children:"Review"}),c.jsx("p",{className:"text-foreground leading-relaxed",children:e!==1?c.jsx(c.Fragment,{children:a.split("Leptozan").map((f,b,p)=>b===p.length-1?f:c.jsxs(O.Fragment,{children:[f,c.jsx("a",{href:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Leptozan"})]},b))}):a})]}),u&&c.jsxs("div",{className:"flex flex-col gap-3 px-0",children:[c.jsx(vr,{asChild:!0,size:"lg",className:"w-full text-xl font-bold bg-[#fbd413] text-black hover:bg-[#fbd413] px-8 py-4",children:c.jsx("a",{href:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296",target:"_blank",rel:"noopener noreferrer",children:"Click here to visit the product website"})}),c.jsx(vr,{variant:"outline",size:"lg",className:"w-full text-base font-bold",onClick:d,children:"Real Costumers Reviews - Leptozan"})]})]})]})})})},jk=[{rank:1,name:"Leptozan",brand:"Leptozan",image:Ls,score:9.8,pros:["Speeds up Your Metabolism","Powerful Energy Boost with NO Crash","Reduces your Appetite Dramatically","Laboratory tests reveal 100% pure ingredients with no binders or fillers.","Vegan, non-GMO, and gluten-free.","Made in the USA in an FDA Approved facility.","90-Day Money Back Guarantee."],cons:["Only available through official website","No free samples offered"],bottomLine:"Leptozan is a maximum strength weight control supplement with research-backed ingredients and customer survey feedback showing powerful results. The formula supports multiple aspects of weight management, helping to increase metabolism, burn fat, curb appetite and cravings, boost energy levels, and regulate blood sugar levels. Unlike some supplements of this type, Leptozan also contains ingredients that support a positive mood, thereby reducing the risk of emotional eating and helping individuals stay motivated and on track with their weight management plan. Customers rave about the benefits of Leptozan in helping them reach their goal weight and improve their well-being. 100% said the supplement decreased appetite and cravings, and 94% reported improvements in metabolism, energy, and workout performance. And, within just 28 days of use, 88% of users reported that they had already lost a significant amount of body weight. However, based on our evaluation, Leptozan should offer all the benefits you need for healthy, sustainable weight loss, thereby improving confidence, well-being, and overall quality of life. Leptozan is available exclusively on the Official Website. Other retail stores do not sell the original product. Plus, you’ll find discounts on the Official Website. Visit the OFFICIAL WEBSITE now! Overall, LEPTOZAN is our top pick for weight loss in 2025.",url:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296"},{rank:2,name:"Lipo Gummy",brand:"Independent Health",image:nd,score:8.5,pros:["Contains 4 out of 5 key ingredients","Made from organic, sustainably-sourced herbs","Reputable brand with good manufacturing practices","Positive customer feedback"],cons:["Priced high in comparison to superior fat burners","No clinical trials conducted on the formula","Results may vary significantly between users"],bottomLine:"Lipo Gummy is a supplement centered primarily around two functions: controlling appetite and boosting energy output. Its ingredient blend aims to minimize food cravings and enhance stamina, which may benefit those looking for an extra push to jumpstart their fitness and nutrition regimen. The core limitation with Lipo Gummy, however, is its absence of proven fat-burning compounds such as Curcumin and Berberine, for instance. Compounding this issue, its price point sits considerably higher than competing products. If you’re looking for a proven and effective way to burn fat, Leptozan is hands down the best option on the market today!",url:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296"},{rank:3,name:"FitSpresso",brand:"FitSpresso",image:Pv,score:7.9,pros:["Contains 4 out of 5 key ingredients","Well-established supplement company","Third-party tested for purity","Good value for the price"],cons:["Does not contain the majority of ingredients that are clinically recommend in a weigh loss product.","No dedicated clinical trials","Some users report needing higher doses for results"],bottomLine:"FitSpresso contains several key ingredients that are commonly used in weight management supplements, but without detailed descriptions of all the ingredients, the overall effectiveness of the formula remains unclear. While the website creates a generally positive impression of the supplement, it would be beneficial to provide more information about the FitSpresso formula as well as clinical testing results. There are customer reviews available, but as with any supplement in this category, results may vary. To achieve the full benefits of the product, consumers would certainly need to follow a calorie-controlled diet and exercise regularly, and it is not clear how well the supplement would work without these lifestyle changes. Additionally, it is important to note that there are no free samples available to try before making a purchase. Any consumer wishing to try this supplement should contact the company directly to understand the full terms and conditions of the money-back guarantee before placing an order.",url:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296"},{rank:4,name:"Nagano Tonic",brand:"Nagano Tonic",image:Tv,score:7.2,pros:["Contains 4 out of 5 key ingredients","Affordable pricing","Easy to find in retail stores","Some positive customer reviews"],cons:["Does not contain the majority of ingredients that are clinically recommend in a weigh loss product.","No clinical studies","Less established brand","Inconsistent customer experiences"],bottomLine:"Nagano Tonic is marketed as a supplement designed to support individuals following the ketogenic diet, specifically by helping the body enter and maintain ketosis more effectively. For those committed to the keto lifestyle, this product may offer benefits such as accelerated fat burning, improved energy levels, and enhanced mental clarity, all of which are essential for successfully maintaining a ketogenic diet. However, it’s important to note that this supplement is not a standalone weight loss solution. Potential users should approach it with realistic expectations, as individual results may vary. We advise our readers to be cautious of questionable products and instead consider reputable brands that have been trusted in the market for decades. There are better options available, and while they may require a bit more research, they offer more overall benefits.",url:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296"},{rank:5,name:"Liv-Pure",brand:"Liv-Pure",image:jv,score:6.8,pros:["Contains 3 out of 5 key ingredients","Long-established supplement brand","Vegetarian capsules"],cons:["Does not contain the majority of ingredients that are clinically recommend in a weigh loss product.","No clinical trials","Many users report minimal effects","Requires higher dosing frequency"],bottomLine:"Liv-Pure, a wellness supplement promising to rejuvenate your body and mind. With a blend of natural ingredients said to detoxify, boost energy, and promote vitality, Liv-Pure aims to be your ultimate companion for a healthier lifestyle. However, while it boasts an all-natural formula, the scientific evidence behind Liv-Pure’s claims remains unverified. For a more reliable and evidence-based option, consider Leptozan, a proven supplement backed by research for its numerous health benefits, including metabolism support and blood sugar regulation.",url:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296"}],Rk=()=>c.jsx("section",{id:"reviews-section",className:"py-12 md:py-16 pb-8 md:pb-12 bg-secondary",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-12 text-center",children:"Detailed Product Reviews"}),c.jsx("div",{className:"space-y-8",children:jk.map(e=>c.jsx(Tk,{...e,showButton:e.rank===1},e.rank))})]})}),Ok=()=>c.jsx("section",{className:"py-8 md:py-12 bg-gradient-to-b from-primary/5 to-background",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 bg-gold/10 rounded-full mb-4",children:c.jsx(Zw,{className:"w-10 h-10 text-gold"})}),c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our #1 Choice"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"After detailed analysis, Leptozan stands out as the best option"})]}),c.jsx("div",{className:"bg-card border-2 border-primary rounded-xl p-8 shadow-xl",children:c.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx("img",{src:Ls,alt:"Leptozan - Best Prostate Supplement",className:"w-48 h-48 object-contain rounded-lg"})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h3",{className:"text-2xl font-bold text-foreground mb-2",children:"Leptozan by Nutreance"}),c.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[c.jsx("div",{className:"text-4xl font-bold text-primary",children:"9.8"}),c.jsx("span",{className:"text-muted-foreground",children:"/10"})]}),c.jsxs("ul",{className:"space-y-2 mb-6",children:[c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx(xl,{className:"w-5 h-5 text-success mt-0.5 flex-shrink-0"}),c.jsx("span",{className:"text-foreground",children:"Clinically tested against placebo"})]}),c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx(xl,{className:"w-5 h-5 text-success mt-0.5 flex-shrink-0"}),c.jsx("span",{className:"text-foreground",children:"Contains all 5 essential ingredients"})]}),c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx(xl,{className:"w-5 h-5 text-success mt-0.5 flex-shrink-0"}),c.jsx("span",{className:"text-foreground",children:"90-Day Money Back Guarantee"})]})]}),c.jsx(vr,{size:"lg",className:"w-full md:w-auto text-xl font-bold bg-[#fbd413] text-black hover:bg-[#fbd413] px-8 py-4",asChild:!0,children:c.jsx("a",{href:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296",target:"_blank",rel:"noopener noreferrer",children:"Visit Official Website"})})]})]})})]})}),Rv=y.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Se("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Rv.displayName="Card";const Mk=y.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Se("flex flex-col space-y-1.5 p-6",e),...t}));Mk.displayName="CardHeader";const Ak=y.forwardRef(({className:e,...t},n)=>c.jsx("h3",{ref:n,className:Se("text-2xl font-semibold leading-none tracking-tight",e),...t}));Ak.displayName="CardTitle";const Lk=y.forwardRef(({className:e,...t},n)=>c.jsx("p",{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));Lk.displayName="CardDescription";const Ov=y.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Se("p-6 pt-0",e),...t}));Ov.displayName="CardContent";const Dk=y.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Se("flex items-center p-6 pt-0",e),...t}));Dk.displayName="CardFooter";const _k="/assets/testimonial-1-B4vjCUtk.png",Ik="/assets/testimonial-2-DQiDK0Zw.png",Fk="/assets/testimonial-3-DDayggxb.png",zk="/assets/testimonial-4-BnPkuhbM.png",$k="/assets/testimonial-5-BJQsKBNC.png",Wk=[{name:"Emily Carter",age:42,location:"Austin, TX",image:_k,text:"I didn’t recognize myself anymore. Diets never worked for me and I had zero energy for workouts. Once I started using Leptozan, everything changed. The weight simply started melting off week after week — without changing anything in my routine. I’ve lost 11 kg, feel lighter, happier, and finally comfortable in my own skin again!",yearsWithProblem:"N/A"},{name:"Jessica Miller",age:51,location:"Phoenix, AZ",image:Ik,text:"I was always skeptical of natural products, but I was tired of restrictive diets that only made me miserable. With Leptozan, my appetite naturally balanced and the scale finally started moving. I’ve lost 14 kg without exercising or giving up my favorite foods. For the first time ever, I lost weight without suffering.",yearsWithProblem:"N/A"},{name:"Sofia Ramirez",age:38,location:"Miami, FL",image:Fk,text:"I tried everything — workouts, low-carb, fasting… nothing worked. Leptozan was my last shot before giving up. To my surprise, my metabolism sped up and that stubborn belly fat finally started disappearing. In just 8 weeks, I lost 9 kg. I’m sleeping better, I’m more energetic, and I’m fitting into clothes I hadn’t worn in years!",yearsWithProblem:"N/A"},{name:"Hannah Wilson",age:47,location:"Denver, CO",image:zk,text:"My weight struggles made me anxious every single day. I felt stuck. After starting Leptozan, I noticed real changes — less bloating, a more active metabolism, and steady weight loss without effort. I’ve lost 10 kg and I feel confident and in control again. No diets. No workouts. Just Leptozan.",yearsWithProblem:"N/A"},{name:"Rebecca Anderson",age:55,location:"Seattle, WA",image:$k,text:"I was exhausted and frustrated from trying everything. Leptozan was the first thing that actually worked. My body finally responded — my belly flattened, my energy returned, and I started losing weight naturally. So far, I’ve lost 16 kg without the gym, without dieting, and without stress. I feel like I’ve turned back the clock 15 years.",yearsWithProblem:"N/A"}],Bk=()=>c.jsxs(c.Fragment,{children:[c.jsx("span",{id:"testimonials"}),c.jsx("section",{id:"testimonials-section",className:"py-16 md:py-20 bg-secondary",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-6xl",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"What Our Readers Are Saying"}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Real testimonials from people who transformed their bodies and their lives"})]}),c.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-8",children:Wk.map((e,t)=>c.jsx(Rv,{className:"relative",children:c.jsxs(Ov,{className:"pt-6",children:[c.jsx(Jw,{className:"w-10 h-10 text-primary/20 mb-4"}),c.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[c.jsx("img",{src:e.image,alt:e.name,className:"w-16 h-16 rounded-full object-cover"}),c.jsxs("div",{children:[c.jsx("h3",{className:"font-bold text-foreground",children:e.name}),c.jsxs("p",{className:"text-sm text-muted-foreground",children:[e.age," years old, ",e.location]})]})]}),c.jsxs("p",{className:"text-foreground mb-4 italic",children:['"',e.text,'"']})]})},t))})]})})]}),Uk=[{authors:"Berges RR, Windeler J, Trampisch HJ, et al.",title:"Randomised, placebo-controlled, double-blind clinical trial of beta-sitosterol in patients with benign prostatic hyperplasia.",journal:"Lancet. 1995;345(8964):1529-1532."},{authors:"Wilt T, Ishani A, Mac Donald R.",title:"Serenoa repens for benign prostatic hyperplasia.",journal:"Cochrane Database Syst Rev. 2002;(3):CD001423."},{authors:"Safarinejad MR.",title:"Urtica dioica for treatment of benign prostatic hyperplasia: a prospective, randomized, double-blind, placebo-controlled, crossover study.",journal:"J Herb Pharmacother. 2005;5(4):1-11."},{authors:"Schwarz S, Obermuller-Jevic UC, Hellmis E, et al.",title:"Lycopene inhibits disease progression in patients with benign prostate hyperplasia.",journal:"J Nutr. 2008;138(1):49-53."},{authors:"Hong H, Kim CS, Maeng S.",title:"Effects of pumpkin seed oil and saw palmetto oil in Korean men with symptomatic benign prostatic hyperplasia.",journal:"Nutr Res Pract. 2009;3(4):323-327."}],Hk=()=>c.jsx("section",{className:"py-12 md:py-16 bg-background border-t border-border",children:c.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-foreground mb-8",children:"References"}),c.jsx("ol",{className:"space-y-4 list-decimal list-inside",children:Uk.map((e,t)=>c.jsxs("li",{className:"text-foreground leading-relaxed pl-2",children:[c.jsx("span",{className:"font-medium",children:e.authors})," ",e.title," ",c.jsx("span",{className:"italic",children:e.journal})]},t))})]})}),Vk=()=>c.jsx("footer",{className:"bg-muted py-8 md:py-12 border-t border-border",children:c.jsx("div",{className:"container mx-auto px-4",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mb-8",children:[c.jsx("a",{href:"#about",className:"text-foreground hover:text-primary transition-colors",children:"About Us"}),c.jsx("span",{className:"text-muted-foreground",children:"•"}),c.jsx("a",{href:"#contact",className:"text-foreground hover:text-primary transition-colors",children:"Contact Us"}),c.jsx("span",{className:"text-muted-foreground",children:"•"}),c.jsx("a",{href:"#disclaimer",className:"text-foreground hover:text-primary transition-colors",children:"Disclaimer"})]}),c.jsxs("div",{className:"text-center space-y-4",children:[c.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:[c.jsx("strong",{children:"Disclaimer:"})," The statements made on this website have not been evaluated by the Food and Drug Administration. These products are not intended to diagnose, treat, cure, or prevent any disease. The information provided on this site is for informational purposes only and is not intended as a substitute for advice from your physician or other health care professional."]}),c.jsx("p",{className:"text-sm text-muted-foreground",children:"© 2025 Top 5 Supplements. All rights reserved."})]})]})})}),Qk=()=>{const[e,t]=y.useState(0);y.useEffect(()=>{const a=()=>{const l=window.scrollY,u=document.documentElement.scrollHeight-document.documentElement.clientHeight,d=l/u*100;t(d)};return window.addEventListener("scroll",a),a(),()=>window.removeEventListener("scroll",a)},[]);const n=a=>{const l=document.getElementById(a);l&&l.scrollIntoView({behavior:"smooth",block:"start"})},r=[{title:"5 Key Ingredients for Effective Weight Loss",sectionId:"comparison-section"},{title:"Warning Signs of Potential Scams",sectionId:"warnings-section"},{title:"2025's Top 5 Weight Loss Supplement",sectionId:"reviews-section"},{title:"Testimonials",sectionId:"testimonials-section"}],o=Math.round(e),s=2*Math.PI*45,i=s-e/100*s;return c.jsxs("aside",{className:"hidden xl:block fixed right-8 top-32 w-72 space-y-4 z-40",children:[c.jsxs("div",{className:"bg-background border border-border rounded-lg shadow-lg overflow-hidden",children:[c.jsx("h3",{className:"text-lg font-bold text-white bg-primary mb-0 py-3 px-4 text-center",children:"Table of Contents"}),c.jsxs("div",{className:"p-4",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[c.jsxs("div",{className:"relative w-20 h-20 flex-shrink-0",children:[c.jsxs("svg",{className:"w-20 h-20 transform -rotate-90",children:[c.jsx("circle",{cx:"40",cy:"40",r:"38",stroke:"currentColor",strokeWidth:"5",fill:"none",className:"text-muted"}),c.jsx("circle",{cx:"40",cy:"40",r:"38",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:s,strokeDashoffset:i,className:"text-primary transition-all duration-300",strokeLinecap:"round"})]}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:c.jsxs("span",{className:"text-lg font-bold text-foreground",children:[o,"%"]})})]}),c.jsx("div",{className:"flex-1",children:c.jsxs("p",{className:"text-xs text-muted-foreground",children:["Estimated Read Time:"," ",c.jsx("span",{className:"font-bold text-foreground",children:"5 minutes"})]})})]}),c.jsx("div",{className:"space-y-2",children:r.map((a,l)=>c.jsxs("button",{onClick:()=>n(a.sectionId),className:"flex items-start gap-2 w-full text-left hover:bg-muted/50 p-2 rounded-md transition-colors",children:[c.jsx("div",{className:"flex-shrink-0 mt-0.5",children:c.jsx("div",{className:"w-4 h-4 rounded-full bg-success flex items-center justify-center",children:c.jsx(Me,{className:"w-2.5 h-2.5 text-success-foreground"})})}),c.jsx("span",{className:"text-sm text-primary underline hover:no-underline transition-all font-medium",children:a.title})]},l))})]})]}),c.jsxs("div",{className:"bg-white border border-border rounded-lg shadow-lg p-4",children:[c.jsx("h3",{className:"text-base font-bold text-primary mb-2 text-center",children:"Our #1 Choice for 2025"}),c.jsx("div",{className:"bg-background rounded-lg p-3 mb-3",children:c.jsx("img",{src:Ls,alt:"Leptozan - Top Prostate Supplement",className:"w-full h-40 object-contain"})}),c.jsx(vr,{className:"w-full text-sm bg-primary text-white hover:bg-primary/90",asChild:!0,children:c.jsx("a",{href:"https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296",target:"_blank",rel:"noopener noreferrer",children:"Learn More"})})]})]})};var Nl="focusScope.autoFocusOnMount",Pl="focusScope.autoFocusOnUnmount",fh={bubbles:!1,cancelable:!0},Yk="FocusScope",Mv=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=y.useState(null),u=Bt(o),d=Bt(s),h=y.useRef(null),m=$e(t,p=>l(p)),f=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let p=function(x){if(f.paused||!a)return;const S=x.target;a.contains(S)?h.current=S:xn(h.current,{select:!0})},w=function(x){if(f.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||xn(h.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&xn(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",w);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w),g.disconnect()}}},[r,a,f.paused]),y.useEffect(()=>{if(a){ph.add(f);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(Nl,fh);a.addEventListener(Nl,u),a.dispatchEvent(v),v.defaultPrevented||(Gk(Zk(Av(a)),{select:!0}),document.activeElement===p&&xn(a))}return()=>{a.removeEventListener(Nl,u),setTimeout(()=>{const v=new CustomEvent(Pl,fh);a.addEventListener(Pl,d),a.dispatchEvent(v),v.defaultPrevented||xn(p??document.body,{select:!0}),a.removeEventListener(Pl,d),ph.remove(f)},0)}}},[a,u,d,f]);const b=y.useCallback(p=>{if(!n&&!r||f.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(w&&v){const g=p.currentTarget,[x,S]=Kk(g);x&&S?!p.shiftKey&&v===S?(p.preventDefault(),n&&xn(x,{select:!0})):p.shiftKey&&v===x&&(p.preventDefault(),n&&xn(S,{select:!0})):v===g&&p.preventDefault()}},[n,r,f.paused]);return c.jsx(ye.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});Mv.displayName=Yk;function Gk(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xn(r,{select:t}),document.activeElement!==n)return}function Kk(e){const t=Av(e),n=hh(t,e),r=hh(t.reverse(),e);return[n,r]}function Av(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hh(e,t){for(const n of e)if(!qk(n,{upTo:t}))return n}function qk(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Xk(e){return e instanceof HTMLInputElement&&"select"in e}function xn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Xk(e)&&t&&e.select()}}var ph=Jk();function Jk(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=mh(e,t),e.unshift(t)},remove(t){var n;e=mh(e,t),(n=e[0])==null||n.resume()}}}function mh(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Zk(e){return e.filter(t=>t.tagName!=="A")}var Tl=0;function eN(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gh()),document.body.insertAdjacentElement("beforeend",e[1]??gh()),Tl++,()=>{Tl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tl--}},[])}function gh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var It=function(){return It=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u")return vN;var t=yN(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wN=Iv(),eo="data-scroll-locked",bN=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(nN,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(eo,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(s,`px; padding-right: `).concat(i,`px; margin-left:0; margin-top:0; margin-right: `).concat(a,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Ni,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(Pi,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(Ni," .").concat(Ni,` { right: 0 `).concat(r,`; } .`).concat(Pi," .").concat(Pi,` { margin-right: 0 `).concat(r,`; } body[`).concat(eo,`] { `).concat(rN,": ").concat(a,`px; } `)},yh=function(){var e=parseInt(document.body.getAttribute(eo)||"0",10);return isFinite(e)?e:0},SN=function(){y.useEffect(function(){return document.body.setAttribute(eo,(yh()+1).toString()),function(){var e=yh()-1;e<=0?document.body.removeAttribute(eo):document.body.setAttribute(eo,e.toString())}},[])},EN=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;SN();var s=y.useMemo(function(){return xN(o)},[o]);return y.createElement(wN,{styles:bN(s,!t,o,n?"":"!important")})},Bu=!1;if(typeof window<"u")try{var ai=Object.defineProperty({},"passive",{get:function(){return Bu=!0,!0}});window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{Bu=!1}var Rr=Bu?{passive:!1}:!1,CN=function(e){return e.tagName==="TEXTAREA"},Fv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!CN(e)&&n[t]==="visible")},kN=function(e){return Fv(e,"overflowY")},NN=function(e){return Fv(e,"overflowX")},xh=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=zv(e,r);if(o){var s=$v(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},PN=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},TN=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},zv=function(e,t){return e==="v"?kN(t):NN(t)},$v=function(e,t){return e==="v"?PN(t):TN(t)},jN=function(e,t){return e==="h"&&t==="rtl"?-1:1},RN=function(e,t,n,r,o){var s=jN(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,d=i>0,h=0,m=0;do{if(!a)break;var f=$v(e,a),b=f[0],p=f[1],w=f[2],v=p-w-s*b;(b||v)&&zv(e,a)&&(h+=v,m+=b);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(h)<1||!o)||!d&&(Math.abs(m)<1||!o))&&(u=!0),u},li=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wh=function(e){return[e.deltaX,e.deltaY]},bh=function(e){return e&&"current"in e?e.current:e},ON=function(e,t){return e[0]===t[0]&&e[1]===t[1]},MN=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},AN=0,Or=[];function LN(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),o=y.useState(AN++)[0],s=y.useState(Iv)[0],i=y.useRef(e);y.useEffect(function(){i.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=tN([e.lockRef.current],(e.shards||[]).map(bh),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var v=li(p),g=n.current,x="deltaX"in p?p.deltaX:g[0]-v[0],S="deltaY"in p?p.deltaY:g[1]-v[1],E,C=p.target,k=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in p&&k==="h"&&C.type==="range")return!1;var j=xh(k,C);if(!j)return!0;if(j?E=k:(E=k==="v"?"h":"v",j=xh(k,C)),!j)return!1;if(!r.current&&"changedTouches"in p&&(x||S)&&(r.current=E),!E)return!0;var A=r.current||E;return RN(A,w,p,A==="h"?x:S,!0)},[]),l=y.useCallback(function(p){var w=p;if(!(!Or.length||Or[Or.length-1]!==s)){var v="deltaY"in w?wh(w):li(w),g=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&ON(E.delta,v)})[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var x=(i.current.shards||[]).map(bh).filter(Boolean).filter(function(E){return E.contains(w.target)}),S=x.length>0?a(w,x[0]):!i.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),u=y.useCallback(function(p,w,v,g){var x={name:p,delta:w,target:v,should:g,shadowParent:DN(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=y.useCallback(function(p){n.current=li(p),r.current=void 0},[]),h=y.useCallback(function(p){u(p.type,wh(p),p.target,a(p,e.lockRef.current))},[]),m=y.useCallback(function(p){u(p.type,li(p),p.target,a(p,e.lockRef.current))},[]);y.useEffect(function(){return Or.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Rr),document.addEventListener("touchmove",l,Rr),document.addEventListener("touchstart",d,Rr),function(){Or=Or.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,Rr),document.removeEventListener("touchmove",l,Rr),document.removeEventListener("touchstart",d,Rr)}},[]);var f=e.removeScrollBar,b=e.inert;return y.createElement(y.Fragment,null,b?y.createElement(s,{styles:MN(o)}):null,f?y.createElement(EN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function DN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _N=cN(_v,LN);var Wv=y.forwardRef(function(e,t){return y.createElement(Ia,It({},e,{ref:t,sideCar:_N}))});Wv.classNames=Ia.classNames;var IN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mr=new WeakMap,ui=new WeakMap,ci={},Ml=0,Bv=function(e){return e&&(e.host||Bv(e.parentNode))},FN=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zN=function(e,t,n,r){var o=FN(t,Array.isArray(e)?e:[e]);ci[n]||(ci[n]=new WeakMap);var s=ci[n],i=[],a=new Set,l=new Set(o),u=function(h){!h||a.has(h)||(a.add(h),u(h.parentNode))};o.forEach(u);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(m){if(a.has(m))d(m);else try{var f=m.getAttribute(r),b=f!==null&&f!=="false",p=(Mr.get(m)||0)+1,w=(s.get(m)||0)+1;Mr.set(m,p),s.set(m,w),i.push(m),p===1&&b&&ui.set(m,!0),w===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return d(t),a.clear(),Ml++,function(){i.forEach(function(h){var m=Mr.get(h)-1,f=s.get(h)-1;Mr.set(h,m),s.set(h,f),m||(ui.has(h)||h.removeAttribute(r),ui.delete(h)),f||h.removeAttribute(n)}),Ml--,Ml||(Mr=new WeakMap,Mr=new WeakMap,ui=new WeakMap,ci={})}},$N=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=IN(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),zN(r,o,n,"aria-hidden")):function(){return null}},Fa="Dialog",[Uv,hP]=Os(Fa),[WN,Rt]=Uv(Fa),Hv=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=y.useRef(null),l=y.useRef(null),[u,d]=Xm({prop:r,defaultProp:o??!1,onChange:s,caller:Fa});return c.jsx(WN,{scope:t,triggerRef:a,contentRef:l,contentId:bl(),titleId:bl(),descriptionId:bl(),open:u,onOpenChange:d,onOpenToggle:y.useCallback(()=>d(h=>!h),[d]),modal:i,children:n})};Hv.displayName=Fa;var Vv="DialogTrigger",BN=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rt(Vv,n),s=$e(t,o.triggerRef);return c.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sd(o.open),...r,ref:s,onClick:ue(e.onClick,o.onOpenToggle)})});BN.displayName=Vv;var rd="DialogPortal",[UN,Qv]=Uv(rd,{forceMount:void 0}),Yv=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Rt(rd,t);return c.jsx(UN,{scope:t,forceMount:n,children:y.Children.map(r,i=>c.jsx(So,{present:n||s.open,children:c.jsx(Fc,{asChild:!0,container:o,children:i})}))})};Yv.displayName=rd;var ia="DialogOverlay",Gv=y.forwardRef((e,t)=>{const n=Qv(ia,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Rt(ia,e.__scopeDialog);return s.modal?c.jsx(So,{present:r||s.open,children:c.jsx(VN,{...o,ref:t})}):null});Gv.displayName=ia;var HN=vs("DialogOverlay.RemoveScroll"),VN=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rt(ia,n);return c.jsx(Wv,{as:HN,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(ye.div,{"data-state":sd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),yr="DialogContent",Kv=y.forwardRef((e,t)=>{const n=Qv(yr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Rt(yr,e.__scopeDialog);return c.jsx(So,{present:r||s.open,children:s.modal?c.jsx(QN,{...o,ref:t}):c.jsx(YN,{...o,ref:t})})});Kv.displayName=yr;var QN=y.forwardRef((e,t)=>{const n=Rt(yr,e.__scopeDialog),r=y.useRef(null),o=$e(t,n.contentRef,r);return y.useEffect(()=>{const s=r.current;if(s)return $N(s)},[]),c.jsx(qv,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ue(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ue(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:ue(e.onFocusOutside,s=>s.preventDefault())})}),YN=y.forwardRef((e,t)=>{const n=Rt(yr,e.__scopeDialog),r=y.useRef(!1),o=y.useRef(!1);return c.jsx(qv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),qv=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Rt(yr,n),l=y.useRef(null),u=$e(t,l);return eN(),c.jsxs(c.Fragment,{children:[c.jsx(Mv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Ea,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":sd(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(GN,{titleId:a.titleId}),c.jsx(qN,{contentRef:l,descriptionId:a.descriptionId})]})]})}),od="DialogTitle",Xv=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rt(od,n);return c.jsx(ye.h2,{id:o.titleId,...r,ref:t})});Xv.displayName=od;var Jv="DialogDescription",Zv=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rt(Jv,n);return c.jsx(ye.p,{id:o.descriptionId,...r,ref:t})});Zv.displayName=Jv;var ey="DialogClose",ty=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Rt(ey,n);return c.jsx(ye.button,{type:"button",...r,ref:t,onClick:ue(e.onClick,()=>o.onOpenChange(!1))})});ty.displayName=ey;function sd(e){return e?"open":"closed"}var ny="DialogTitleWarning",[pP,ry]=ew(ny,{contentName:yr,titleName:od,docsSlug:"dialog"}),GN=({titleId:e})=>{const t=ry(ny),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},KN="DialogDescriptionWarning",qN=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ry(KN).contentName}}.`;return y.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},XN=Hv,JN=Yv,oy=Gv,sy=Kv,iy=Xv,ay=Zv,ZN=ty;const eP=XN,tP=JN,ly=y.forwardRef(({className:e,...t},n)=>c.jsx(oy,{ref:n,className:Se("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ly.displayName=oy.displayName;const uy=y.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(tP,{children:[c.jsx(ly,{}),c.jsxs(sy,{ref:r,className:Se("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,c.jsxs(ZN,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[c.jsx(xe,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));uy.displayName=sy.displayName;const cy=({className:e,...t})=>c.jsx("div",{className:Se("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});cy.displayName="DialogHeader";const dy=y.forwardRef(({className:e,...t},n)=>c.jsx(iy,{ref:n,className:Se("text-lg font-semibold leading-none tracking-tight",e),...t}));dy.displayName=iy.displayName;const fy=y.forwardRef(({className:e,...t},n)=>c.jsx(ay,{ref:n,className:Se("text-sm text-muted-foreground",e),...t}));fy.displayName=ay.displayName;const Al="exitIntentShown_v2",nP=()=>{const[e,t]=y.useState(!1);y.useEffect(()=>{if(sessionStorage.getItem(Al))return;const o=window.matchMedia("(pointer: coarse)").matches||window.innerWidth<=1024;console.log("[ExitIntent] init, isMobile:",o);function s(d){sessionStorage.getItem(Al)||(console.log("[ExitIntent] opening from:",d),t(!0),sessionStorage.setItem(Al,"true"))}const i=d=>{!d.relatedTarget&&d.clientY<=0&&s("mouseout-top")};let a=window.scrollY;const l=()=>{const d=window.scrollY;o&&a>d+80&&s("scroll-up"),a=d},u=window.setTimeout(()=>s("timer"),o?2e4:6e4);return window.addEventListener("mouseout",i),o&&window.addEventListener("scroll",l),()=>{window.removeEventListener("mouseout",i),window.removeEventListener("scroll",l),window.clearTimeout(u)}},[]);const n=o=>{const s=new URL(o),i=new URLSearchParams(window.location.search),a=i.get("gclid"),l=i.get("keyword"),d=window.matchMedia("(pointer: coarse)").matches||window.innerWidth<=1024?"mobile":"desktop";return a&&!s.searchParams.has("gclid")&&s.searchParams.set("gclid",a),l&&!s.searchParams.has("keyword")&&s.searchParams.set("keyword",l),s.searchParams.has("device")||s.searchParams.set("device",d),s.toString()},r=()=>{t(!1)};return c.jsx(eP,{open:e,onOpenChange:t,children:c.jsxs(uy,{className:"fixed left-1/2 top-1/2 z-[9999] -translate-x-1/2 -translate-y-1/2 sm:max-w-md w-full max-w-lg bg-white dark:bg-neutral-900 rounded-2xl shadow-2xl border border-border p-6",children:[c.jsxs("button",{onClick:r,className:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",children:[c.jsx(xe,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]}),c.jsxs(cy,{children:[c.jsx("div",{className:"flex items-center justify-center mb-4",children:c.jsx("div",{className:"bg-gold/10 rounded-full p-3",children:c.jsx(qw,{className:"w-8 h-8 text-gold"})})}),c.jsx(dy,{className:"text-2xl text-center font-bold",children:"Wait! Don't Miss Our #1 Recommendation"}),c.jsx(fy,{className:"text-center pt-2 text-muted-foreground",children:"Before you go, check out our top-rated Weight Loss Supplement"})]}),c.jsxs("div",{className:"flex flex-col items-center gap-4 py-4",children:[c.jsx("img",{src:Ls,alt:"Leptozan - Top Rated Supplement",className:"w-40 h-40 object-contain"}),c.jsxs("div",{className:"text-center",children:[c.jsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:"Leptozan"}),c.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[c.jsx("div",{className:"text-3xl font-bold text-primary",children:"9.8"}),c.jsx("span",{className:"text-muted-foreground",children:"/10"})]}),c.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Clinically tested • All 5 essential ingredients • 90-day guarantee"})]}),c.jsx(vr,{size:"lg",className:"w-full text-xl font-bold bg-[#fbd413] text-black hover:bg-[#fbd413] px-8 py-4",asChild:!0,children:c.jsx("a",{href:n("https://www.fasttrack39.com/Q32LCB8S/2JQWPJNC/?uid=35296"),target:"_blank",rel:"noopener noreferrer",onClick:o=>{o.currentTarget.href=n(o.currentTarget.href)},children:"Visit Official Website"})}),c.jsx(vr,{variant:"ghost",size:"sm",onClick:r,className:"text-muted-foreground",children:"No thanks, I'll pass"})]})]})})},rP=()=>c.jsxs("div",{className:"min-h-screen bg-background",children:[c.jsx(fC,{}),c.jsx(Qk,{}),c.jsxs("main",{children:[c.jsx(bk,{}),c.jsx(Ek,{}),c.jsx(kk,{}),c.jsx(Nk,{}),c.jsx(Rk,{}),c.jsx(Ok,{}),c.jsx(Bk,{}),c.jsx(Hk,{})]}),c.jsx(Vk,{}),c.jsx(nP,{})]}),oP=()=>{const e=Sv();return y.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),c.jsx("div",{className:"flex min-h-screen items-center justify-center bg-gray-100",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),c.jsx("p",{className:"mb-4 text-xl text-gray-600",children:"Oops! Page not found"}),c.jsx("a",{href:"/",className:"text-blue-500 underline hover:text-blue-700",children:"Return to Home"})]})})},sP=new CE,iP=()=>c.jsx(NE,{client:sP,children:c.jsxs(eE,{children:[c.jsx(D1,{}),c.jsx(hb,{}),c.jsx(dC,{children:c.jsxs(lC,{children:[c.jsx($u,{path:"/",element:c.jsx(rP,{})}),c.jsx($u,{path:"*",element:c.jsx(oP,{})})]})})]})});Hm(document.getElementById("root")).render(c.jsx(iP,{}));